summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2021-06-27 02:59:33 +0000
committerDave Watson <dade.watson@gmail.com>2021-07-11 16:06:58 -0700
commit06468efcb52fb1ecbffed99818c1f567c60b1b90 (patch)
treeaf00f803aab0d2920592deceaa2620731de4180a /tests
parent62de804cb8f20a7cd6933a2fcf7b3394fec103de (diff)
downloadlibunwind-06468efcb52fb1ecbffed99818c1f567c60b1b90.tar.gz
test-ptrace: Fix for NixOS
In NixOS, coreutils aren't in their FHS-mandated locations.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-ptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c
index e7c7883f..67ac9259 100644
--- a/tests/test-ptrace.c
+++ b/tests/test-ptrace.c
@@ -178,7 +178,7 @@ main (int argc, char **argv)
if (argc == 1)
{
- static char *args[] = { "self", "/bin/ls", "/usr", NULL };
+ static char *args[] = { "self", "ls", "/", NULL };
/* automated test case */
argv = args;
@@ -233,7 +233,7 @@ main (int argc, char **argv)
fprintf(stderr, "Need to specify a command line for the child\n");
exit (-1);
}
- execve (argv[optind], argv + optind, environ);
+ execvpe (argv[optind], argv + optind, environ);
_exit (-1);
}
atexit (target_pid_kill);