From: Mark Wielaard Date: Thu, 2 Nov 2023 18:50:07 +0000 (+0100) Subject: Do not run memcheck/tests/x86-linux/scalar when root X-Git-Tag: VALGRIND_3_23_0~301 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06762f0a5bb205b8573f0a654ecbbe2a19ae031d;p=thirdparty%2Fvalgrind.git Do not run memcheck/tests/x86-linux/scalar when root 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. --- diff --git a/memcheck/tests/x86-linux/scalar.vgtest b/memcheck/tests/x86-linux/scalar.vgtest index 897d9e73c2..53e87e8d75 100644 --- a/memcheck/tests/x86-linux/scalar.vgtest +++ b/memcheck/tests/x86-linux/scalar.vgtest @@ -1,3 +1,5 @@ prog: scalar +# Do not run under root +prereq: [ `id -u` -ne 0 ] vgopts: -q --error-limit=no args: < scalar.c