|
From: <sv...@va...> - 2012-03-11 20:47:48
|
philippe 2012-03-11 20:47:41 +0000 (Sun, 11 Mar 2012)
New Revision: 12440
Log:
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).
Modified files:
trunk/none/tests/execve.c
Modified: trunk/none/tests/execve.c (+1 -1)
===================================================================
--- trunk/none/tests/execve.c 2012-03-11 17:59:00 +00:00 (rev 12439)
+++ trunk/none/tests/execve.c 2012-03-11 20:47:41 +00:00 (rev 12440)
@@ -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);
|