mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
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
This commit is contained in:
parent
825fdcf3cb
commit
12633f0117
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user