Skip to content

Commit

Permalink
Use catchsegv, print stacktrace in pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Nopey committed Jan 4, 2025
1 parent 5a8c1b2 commit f3081c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Run unittests on a recent version of clang
# -----------------------------------------------------------------------------------------------
unittest:
name: Formatting Check, Unittest
name: Formatting Check, Unittest, python menu tests
runs-on: ubuntu-24.04
env:
clang-version: '18'
Expand All @@ -32,7 +32,7 @@ jobs:
packages: cmake cmake-data ninja-build libargtable2-dev libcunit1-dev
libsdl2-mixer-dev libconfuse-dev libenet-dev libsdl2-dev libxmp-dev libpng-dev
libepoxy-dev clang-${{ env.clang-version }} clang-tidy-${{ env.clang-version }}
clang-format-${{ env.clang-version }} fd-find
clang-format-${{ env.clang-version }} fd-find glibc-tools

- name: Run clang-format style check
run: |
Expand Down
2 changes: 1 addition & 1 deletion pytest/test_menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def start_openomf():
lsan_env["LSAN_OPTIONS"] = "suppressions=../lsan.supp"
openomf_bin = os.environ["OPENOMF_BIN"]
build_dir = os.environ["BUILD_DIR"]
p = popen_spawn.PopenSpawn([openomf_bin, "--force-renderer", "NULL",
p = popen_spawn.PopenSpawn(["catchsegv", openomf_bin, "--force-renderer", "NULL",
"--force-audio-backend", "NULL"],
timeout=60, cwd=build_dir, encoding='utf-8',
logfile=sys.stdout, env=lsan_env)
Expand Down

0 comments on commit f3081c7

Please sign in to comment.