]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Do not run memcheck/tests/x86-linux/scalar when root
authorMark Wielaard <mark@klomp.org>
Thu, 2 Nov 2023 18:50:07 +0000 (19:50 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 2 Nov 2023 18:50:20 +0000 (19:50 +0100)
The test expects some syscalls to fail, but when run as root
the user actually has permission to do silly things. So skip
the test if we notice we are root.

memcheck/tests/x86-linux/scalar.vgtest

index 897d9e73c2cc97119bc3a6261170120ec705a236..53e87e8d75c6cb4de657a283d97e04988de3ce66 100644 (file)
@@ -1,3 +1,5 @@
 prog: scalar
+# Do not run under root
+prereq: [ `id -u` -ne 0 ]
 vgopts: -q --error-limit=no
 args: < scalar.c