mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
Disable ASAN leak detection when run unit-tests with xvfb-run (because the tool leaks all X11 windows).
This commit is contained in:
@@ -9,7 +9,7 @@ The test binary manages its own current working directory, so you can execute it
|
||||
`bin/unit_tests/eepp-unit_tests-debug`
|
||||
* **Linux & FreeBSD Execution (Required for Desktop Environments):**
|
||||
Tests open ~50 individual windows. To prevent disrupting the desktop environment, run them in an isolated framebuffer using `xvfb-run`:
|
||||
`xvfb-run -a -s "-screen 0 1280x1024x24" bin/unit_tests/eepp-unit_tests-debug`
|
||||
`ASAN_OPTIONS=detect_leaks=0 xvfb-run -a -s "-screen 0 1280x1024x24" bin/unit_tests/eepp-unit_tests-debug`
|
||||
* **Filtering Tests:**
|
||||
Use the `--filter` parameter to run specific tests (supports glob patterns).
|
||||
*Example (runs all tests with "Offset" in the name):*
|
||||
|
||||
@@ -5,7 +5,7 @@ cd ../../bin/unit_tests
|
||||
|
||||
echo "=== Running eepp unit tests under GDB (xvfb) ==="
|
||||
|
||||
xvfb-run -s "-screen 0 1280x1024x24" \
|
||||
ASAN_OPTIONS=detect_leaks=0 xvfb-run -s "-screen 0 1280x1024x24" \
|
||||
gdb --batch --quiet --return-child-result \
|
||||
-ex "set confirm off" \
|
||||
-ex "set print thread-events off" \
|
||||
|
||||
Reference in New Issue
Block a user