From fc04a082f334e3dde7ad9daeb4b9e03ee8703a0d Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 26 Sep 2024 14:19:53 +0200 Subject: [PATCH] [FIX] exclude tmp_directory from UBSan /opt/homebrew/opt/llvm@18/bin/../include/c++/v1/__algorithm/partition.h:58:12: runtime error: call to function testing::internal::(anonymous namespace)::IsGlobPattern(std::__1::basic_string, std::__1::allocator> const&) through pointer to incorrect function type 'bool (*)(const std::string &)' --- .github/workflows/ci_sanitizer.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_sanitizer.yml b/.github/workflows/ci_sanitizer.yml index 30b33d11..fd9092e2 100644 --- a/.github/workflows/ci_sanitizer.yml +++ b/.github/workflows/ci_sanitizer.yml @@ -50,6 +50,16 @@ jobs: os: macos-14 cxx_flags: "-fno-omit-frame-pointer -fsanitize=undefined,float-divide-by-zero,implicit-conversion,local-bounds,nullability -Wno-pass-failed" + - name: "UBSan" + os: macos-14 + build_type: Release + ctest_excludes: "-E tmp_directory_snippet_cmp_output" + + - name: "UBSan" + os: macos-14 + build_type: RelWithDebInfo + ctest_excludes: "-E tmp_directory_snippet_cmp_output" + - name: "UBSan" os: ubuntu-latest cxx_flags: "-fno-omit-frame-pointer -fsanitize=undefined,float-divide-by-zero" @@ -98,5 +108,5 @@ jobs: - name: Run tests working-directory: build - run: ctest . -j --output-on-failure + run: ctest . -j --output-on-failure ${{ matrix.ctest_excludes }}