Skip to content

Commit

Permalink
hunt
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Feb 13, 2024
1 parent ad756a8 commit 66ead8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ jobs:
make -j
- name: tests
# Our code is compiled with -fsanitize=address
# We disable leak detection, since python (or pybind11) has some leaks
# which are not interesting to use (inside PyUnicode_New)
run: |
export ASAN_OPTIONS=detect_leaks=0
source venv/bin/activate
cd build/
cmake --build . --target test
8 changes: 0 additions & 8 deletions tests/test_cvnp_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,6 @@ void test_lifetime()
py::str(img).cast<std::string>().c_str());
}

// Disable leak detection, since python (or pybind11) has some leaks
// which are not interesting to use (inside PyUnicode_New)
#ifdef __cplusplus
extern "C"
#endif
const char* __asan_default_options() { return "detect_leaks=0"; }



//#define ENABLE_TEST_LIFETIME

Expand Down

0 comments on commit 66ead8f

Please sign in to comment.