From: Philippe Waroquiers Date: Sun, 11 Mar 2012 20:47:41 +0000 (+0000) Subject: Modify none/tests/execve.c so to avoid infinite loop with --trace-children=yes X-Git-Tag: svn/VALGRIND_3_8_0~413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12633f01172dbcf569639df0e5b4fb80b807d217;p=thirdparty%2Fvalgrind.git Modify none/tests/execve.c so to avoid infinite loop with --trace-children=yes With --trace-children=yes, none/test/execve exec ve forever. This avoids an infinite loop when running outer on inner regression tests (for which --trace-children=yes is mandatory for the outer). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12440 --- diff --git a/none/tests/execve.c b/none/tests/execve.c index 842df78b52..aba252967d 100644 --- a/none/tests/execve.c +++ b/none/tests/execve.c @@ -8,7 +8,7 @@ int main(int argc, char **argv) { // This tests the case where argv and envp are NULL, which is easy to // get wrong because it's an unusual case. - if (execve(argv[0], NULL, NULL) < 0) + if (execve("/bin/true", NULL, NULL) < 0) { perror("execve"); exit(1);