We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be20b75 commit 5274e3dCopy full SHA for 5274e3d
.github/workflows/ci.yml
@@ -40,8 +40,6 @@ jobs:
40
- name: Build and check
41
run: |
42
if [[ "${{ matrix.version }}" == 22.04 ]]; then
43
- # Make UBSAN print whole stack traces
44
- export UBSAN_OPTIONS="print_stacktrace=1"
45
make distcheck-sanitizers
46
else
47
make distcheck
tests/CMakeLists.txt
@@ -34,6 +34,12 @@ macro(add_test_wrap test_name cmd)
34
35
set_tests_properties(${test_name} PROPERTIES COST ${test_cost})
36
math(EXPR test_cost "${test_cost} - 1")
37
+
38
+ # print whole stacktrace for UBSAN reports
39
+ if(SANITIZERS)
+ set_property(TEST ${test_name} APPEND PROPERTY
+ ENVIRONMENT UBSAN_OPTIONS="print_stacktrace=1")
+ endif()
endmacro()
set(test_cost 1048576)
0 commit comments