test: make the symbols-leak-test executable

Python leaks like crazy when run under valgrind. But if we make the script
executable **and** it has uses the env invocation (i.e. #!/usr/bin/env python3),
the leaks disappear. This is not the case for a shebang of /usr/bin/python3.

Why exactly this is the case I'm not sure but executables we plan to run
should have the exec bit set. So this is a janitor patch with the nice side
effect of fixing our valgrind runs.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
master
Peter Hutterer 2020-07-23 08:49:54 +10:00 committed by Ran Benita
parent ddd1188d97
commit f0b1441f5e
2 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ jobs:
meson compile -C build
- name: Test
run:
meson test -C build --print-errorlogs # --wrapper="valgrind --leak-check=full --track-origins=yes --error-exitcode=99"
meson test -C build --print-errorlogs --wrapper="valgrind --leak-check=full --track-origins=yes --error-exitcode=99"
macos:
runs-on: macos-10.15

0
test/symbols-leak-test.py Normal file → Executable file
View File