summaryrefslogtreecommitdiff
path: root/tests/test-ptrace.c
diff options
context:
space:
mode:
authorDave Watson <davejwatson@fb.com>2017-01-07 09:13:33 -0800
committerDave Watson <davejwatson@fb.com>2017-01-13 08:28:21 -0800
commit32e3e93b01682382565c3e3a4eb5170c5bfed33a (patch)
tree5ebd96a62b3332d85d47d91045e9d06196ee01dc /tests/test-ptrace.c
parent5dcb7cd3cb63bf8a3a5f7531d10f937053930a25 (diff)
downloadlibunwind-32e3e93b01682382565c3e3a4eb5170c5bfed33a.tar.gz
tests: Walk default test arguments to ensure child process has visibility
Diffstat (limited to 'tests/test-ptrace.c')
-rw-r--r--tests/test-ptrace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c
index a5b71ddb..e7c7883f 100644
--- a/tests/test-ptrace.c
+++ b/tests/test-ptrace.c
@@ -182,6 +182,11 @@ main (int argc, char **argv)
/* automated test case */
argv = args;
+
+ /* Unless the args array is 'walked' the child
+ process is unable to access it and dies with a segfault */
+ fprintf(stderr, "Automated test (%s,%s,%s,%s)\n",
+ args[0],args[1],args[2],args[3]);
}
else if (argc > 1)
while (argv[optind][0] == '-')