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 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/none/tests/execve.c b/none/tests/execve.c
index 842df78..aba2529 100644
--- a/none/tests/execve.c
+++ b/none/tests/execve.c
@@ -8,7 +8,7 @@
{
// 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);