Skip to content

ci: run tests under gdb on Linux#15362

Open
madebr wants to merge 3 commits intolibsdl-org:mainfrom
madebr:ci-under-gdb
Open

ci: run tests under gdb on Linux#15362
madebr wants to merge 3 commits intolibsdl-org:mainfrom
madebr:ci-under-gdb

Conversation

@madebr
Copy link
Copy Markdown
Contributor

@madebr madebr commented Apr 10, 2026

  • By running them under the gdb debugger, a stacktrace can be printed when a fatal signal is emitted.
  • The pr also contains a commit adding the possibility to override ctest arguments. This is useful to stress test a particular test.
    Example: adding [sdl-ci-ctest-arg --repeat until-fail:400000 -VV -R torturethread -j2] to your commit message will repeat torturethead maximum 400000 times until it fails. This argument should be combined with [sdl-ci-filter X] to limit the number of jobs that are started.

Description

Existing Issue(s)

@madebr
Copy link
Copy Markdown
Contributor Author

madebr commented Apr 10, 2026

For a reason unknown to me, the Steam Linux Runtime 3.0 (x86_64 and arm64) jobs fail to find gdb.

@madebr
Copy link
Copy Markdown
Contributor Author

madebr commented Apr 10, 2026

Also, can somebody test whether -DSDLTEST_GDB=ON also works on Apple? Add an abort() somewhere in SDL's code and check whether ctest -V -R <test-name> prints a backtrace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant