From: Mark Wielaard Date: Sat, 4 Jan 2014 14:41:04 +0000 (+0100) Subject: tests: backtrace-subr.sh skip check_native_core test if core ulimit fails. X-Git-Tag: elfutils-0.158~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1051a0c8ad8b69725384de20647a982b283701f0;p=thirdparty%2Felfutils.git tests: backtrace-subr.sh skip check_native_core test if core ulimit fails. Signed-off-by: Mark Wielaard --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 63692e3df..0c112cf24 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2014-01-04 Mark Wielaard + + * backtrace-subr.sh (check_native_core): Skip, exit 77, the test + if we cannot adjust core ulimit. + 2014-01-04 Mark Wielaard * cleanup-13.c (force_unwind_stop): Removed. diff --git a/tests/backtrace-subr.sh b/tests/backtrace-subr.sh index 580a1cea2..e7ece91ca 100644 --- a/tests/backtrace-subr.sh +++ b/tests/backtrace-subr.sh @@ -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"