]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: backtrace-subr.sh skip check_native_core test if core ulimit fails.
authorMark Wielaard <mjw@redhat.com>
Sat, 4 Jan 2014 14:41:04 +0000 (15:41 +0100)
committerMark Wielaard <mjw@redhat.com>
Sat, 4 Jan 2014 14:41:04 +0000 (15:41 +0100)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/backtrace-subr.sh

index 63692e3df7adfbc058781bbdb8e3fce2615b9267..0c112cf244b38b1374a0599b1e422bf8f45cf2f0 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-04  Mark Wielaard  <mjw@redhat.com>
+
+       * backtrace-subr.sh (check_native_core): Skip, exit 77, the test
+       if we cannot adjust core ulimit.
+
 2014-01-04  Mark Wielaard  <mjw@redhat.com>
 
        * cleanup-13.c (force_unwind_stop): Removed.
index 580a1cea24220648240f936631fe8ef6cf32c3d7..e7ece91ca4a591ac141129e0a4fac5ac58a6c7b0 100644 (file)
@@ -109,7 +109,8 @@ check_native_core()
   SAVED_VALGRIND_CMD="$VALGRIND_CMD"
   unset VALGRIND_CMD
 
-  core="core.`ulimit -c unlimited; set +ex; testrun ${abs_builddir}/$child --gencore; true`"
+  # Skip the test if we cannot adjust core ulimit.
+  core="core.`ulimit -c unlimited || exit 77; set +ex; testrun ${abs_builddir}/$child --gencore; true`"
 
   if [ "x$SAVED_VALGRIND_CMD" != "x" ]; then
     VALGRIND_CMD="$SAVED_VALGRIND_CMD"