mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-15 16:52:45 +00:00

Use _GLIBCXX_DEBUG, _GLIBCXX_DEBUG_PEDANTIC, and _GLIBCXX_ASSERTIONS for the debug Ubuntu build.
14 lines
615 B
Bash
Executable File
14 lines
615 B
Bash
Executable File
#!/bin/bash
|
|
|
|
gdb -q -batch -return-child-result -ex "set disable-randomization off" -ex "set style enabled on" -ex "run" -ex "thread apply all bt" -ex "quit" --args ./wesnoth -m --controller 1:ai --controller 2:ai --nogui 2> error.log
|
|
error_code="$?"
|
|
while grep -q 'Could not initialize SDL_video' error.log; do
|
|
echo "Could not initialize SDL_video error, retrying..."
|
|
gdb -q -batch -return-child-result -ex "set style enabled on" -ex "run" -ex "thread apply all bt" -ex "quit" --args ./wesnoth -m --controller 1:ai --controller 2:ai --nogui 2> error.log
|
|
error_code="$?"
|
|
done
|
|
cat error.log
|
|
|
|
exit $error_code
|
|
|