diff options
author | Tom de Vries <tdevries@suse.de> | 2023-02-21 14:10:12 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-02-21 14:10:12 +0100 |
commit | b3060b05134f47f6c6aba72f31746822343252ac (patch) | |
tree | 7d80409eeabd4d04c09aa66ddacc71522e2b6965 /gdb/testsuite/gdb.reverse | |
parent | d720176596dd6495c258fa73c4029f009616ebd2 (diff) | |
download | gdb-b3060b05134f47f6c6aba72f31746822343252ac.zip gdb-b3060b05134f47f6c6aba72f31746822343252ac.tar.gz gdb-b3060b05134f47f6c6aba72f31746822343252ac.tar.bz2 |
[gdb/testsuite] Require syscall time in gdb.reverse/time-reverse.exp
On aarch64-linux, I run into:
...
Running gdb.reverse/time-reverse.exp ...
gdb compile failed, gdb.reverse/time-reverse.c: In function 'main':
gdb.reverse/time-reverse.c:39:12: error: 'SYS_time' undeclared \
(first use in this function); did you mean 'SYS_times'?
syscall (SYS_time, &time_global);
^~~~~~~~
SYS_times
gdb.reverse/time-reverse.c:39:12: note: each undeclared identifier is \
reported only once for each function it appears in
UNTESTED: gdb.reverse/time-reverse.exp: failed to prepare
...
Fix this by adding a new proc have_syscall, and requiring syscall time, such
that we have instead:
...
UNSUPPORTED: gdb.reverse/time-reverse.exp: require failed: \
expr [have_syscall time]
...
Tested on x86_64-linux and aarch64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.reverse')
-rw-r--r-- | gdb/testsuite/gdb.reverse/time-reverse.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.reverse/time-reverse.exp b/gdb/testsuite/gdb.reverse/time-reverse.exp index 07d55b3..befda65 100644 --- a/gdb/testsuite/gdb.reverse/time-reverse.exp +++ b/gdb/testsuite/gdb.reverse/time-reverse.exp @@ -23,6 +23,8 @@ require supports_reverse standard_testfile +require {expr [have_syscall time]} + if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { return -1 } |