Skip to content

Commit 0a5ad6c

Browse files
committed
Don't disable ASLR when re-running tests under LLDB, to work in CI
1 parent 0e3d3d9 commit 0a5ad6c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/run-selftest-nopg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ R=$?
2222
if [[ $R -ne 0 ]] ; then
2323
echo "Test failed, rerunning with debugger"
2424
echo ./stellar-core test $STELLAR_CORE_TEST_PARAMS --base-instance $BASE_INSTANCE "$TESTS"
25-
lldb -o 'r' -o 'bt' -o 'exit' -- ./stellar-core test $STELLAR_CORE_TEST_PARAMS --base-instance $BASE_INSTANCE "$TESTS"
25+
lldb -O 'settings set target.disable-aslr false' -o 'r' -o 'bt' -o 'exit' -- ./stellar-core test $STELLAR_CORE_TEST_PARAMS --base-instance $BASE_INSTANCE "$TESTS"
2626
fi
2727
exit $R

src/test/run-selftest-pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ R=$?
115115
if [[ $R -ne 0 ]] ; then
116116
echo "Test failed, rerunning with debugger"
117117
echo ./stellar-core test $STELLAR_CORE_TEST_PARAMS --base-instance $BASE_INSTANCE "$TESTS"
118-
lldb -o 'r' -o 'bt' -o 'exit' -- ./stellar-core test $STELLAR_CORE_TEST_PARAMS --base-instance $BASE_INSTANCE "$TESTS"
118+
lldb -O 'settings set target.disable-aslr false' -o 'r' -o 'bt' -o 'exit' -- ./stellar-core test $STELLAR_CORE_TEST_PARAMS --base-instance $BASE_INSTANCE "$TESTS"
119119
fi
120120
exit $R

0 commit comments

Comments
 (0)