Disable ASAN leak detection when run unit-tests with xvfb-run (because the tool leaks all X11 windows).

This commit is contained in:
Martín Lucas Golini
2026-04-24 12:00:45 -03:00
parent 7d2d4c0a3b
commit dea87f345e
2 changed files with 2 additions and 2 deletions

View File

@@ -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):*