]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Improve backtrace-data SKIP message.
authorMark Wielaard <mark@klomp.org>
Wed, 28 Nov 2018 12:58:31 +0000 (13:58 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 28 Nov 2018 12:58:31 +0000 (13:58 +0100)
The backtrace-data testcase is x86_64 linux only because it uses its
own set_initial_registers and scans its own /proc/pid/maps file.
The SKIP message it gave on other platforms was misleading. It said
"Unwinding not supported for this architecture". Change it to
"x86_64 linux only test" to be less confusing.

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/backtrace-data.c
tests/run-backtrace-data.sh

index f6b0a6725bc3d9138d2e37bfbffde6bdb19bd37b..225a51d5ce09b0cc305152b3250fb10c46e2c406 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-28  Mark Wielaard  <mark@klomp.org>
+
+       * backtrace-data.c (main): Improve error message.
+       * run-backtrace-data.sh: Skip exit 77 return.
+
 2018-11-21  Mark Wielaard  <mark@klomp.org>
 
        * backtrace-subr.sh (check_unsupported): Call test_cleanup before
index 67ecd4753e534bebd7480af450a950f36951accc..3a91c6645e4e24eb9952840bd95e8013fc355048 100644 (file)
@@ -47,7 +47,7 @@
 int
 main (int argc __attribute__ ((unused)), char **argv)
 {
-  fprintf (stderr, "%s: Unwinding not supported for this architecture\n",
+  fprintf (stderr, "%s: x86_64 linux only test\n",
           argv[0]);
   return 77;
 }
index 34a4f01d80287194e3d4fb7a1ee377944ea5cfec..3062c3044bbd32ddb1ba89a92b9d129b6f12dd46 100755 (executable)
 unset VALGRIND_CMD
 
 tempfiles data.{bt,err}
-(set +ex; testrun ${abs_builddir}/backtrace-data 1>data.bt 2>data.err; true)
+(set +ex;
+ testrun ${abs_builddir}/backtrace-data 1>data.bt 2>data.err;
+ if test $? == 77; then cat data.{bt,err}; exit 77; fi
+ true)
+
 cat data.{bt,err}
 check_unsupported data.err data
 check_all data.{bt,err} data