diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2022-06-11 13:07:18 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2022-06-21 19:27:15 +0100 |
commit | 6a8829ebb203eae2429ae452d40385ff0482ebb7 (patch) | |
tree | a0aa91319876d98636e2923878bcf3ecec007737 /libctf/testsuite/lib | |
parent | 3ec2b3c05887bd00a6d4a4e94e004c6d9d2f70eb (diff) | |
download | binutils-6a8829ebb203eae2429ae452d40385ff0482ebb7.zip binutils-6a8829ebb203eae2429ae452d40385ff0482ebb7.tar.gz binutils-6a8829ebb203eae2429ae452d40385ff0482ebb7.tar.bz2 |
libctf: tests: prune warnings from compiler output
We were failing to call prune_warnings appropriately, leading to
false-positive test failures on some platforms (observed on
sparclinux).
libctf/ChangeLog:
* testsuite/lib/ctf-lib.exp: Prune warnings from compiler and
linker output.
* testsuite/libctf-regression/libctf-repeat-cu.exp: Likewise,
and ar output too.
Diffstat (limited to 'libctf/testsuite/lib')
-rw-r--r-- | libctf/testsuite/lib/ctf-lib.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libctf/testsuite/lib/ctf-lib.exp b/libctf/testsuite/lib/ctf-lib.exp index e7552ed..6c55bbe 100644 --- a/libctf/testsuite/lib/ctf-lib.exp +++ b/libctf/testsuite/lib/ctf-lib.exp @@ -181,7 +181,7 @@ proc run_lookup_test { name } { } # Compile and link the lookup program. - set comp_output [compile_link_one_host_cc $opts(lookup) "tmpdir/lookup" "libctf.la"] + set comp_output [prune_warnings [compile_link_one_host_cc $opts(lookup) "tmpdir/lookup" "libctf.la"]] if { $comp_output != ""} { send_log "compilation of lookup program $opts(lookup) failed with <$comp_output>" @@ -217,7 +217,7 @@ proc run_lookup_test { name } { } } - set comp_output [run_host_cmd "$CC_FOR_TARGET" "$CFLAGS_FOR_TARGET $lookup_flags [concat $src] -o $lookup_output"] + set comp_output [prune_warnings [run_host_cmd "$CC_FOR_TARGET" "$CFLAGS_FOR_TARGET $lookup_flags [concat $src] -o $lookup_output"]] if { $comp_output != ""} { send_log "compilation of CTF program [concat $src] failed with <$comp_output>" |