Skip to content

Commit 3dd02b8

Browse files
committed
Disable randomization in gdb.
1 parent 1c4a036 commit 3dd02b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci/travis/test_script.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
2020
pytest $PYTEST_ARGS $RUN_PEP8
2121
exit $?
2222
else
23-
python $PYTHON_ARGS -m pytest $PYTEST_ARGS $RUN_PEP8
23+
gdb -return-child-result -batch \
24+
-ex 'set disable-randomization off' \
25+
-ex r \
26+
-ex bt \
27+
--args python $PYTHON_ARGS -m pytest $PYTEST_ARGS $RUN_PEP8
2428
exit_val=$?
25-
echo "pytest exited with result $exit_val"
29+
echo "gdb exited with result $exit_val"
2630
exit $exit_val
2731
fi

0 commit comments

Comments
 (0)