diff options
author | Dave Watson <davejwatson@fb.com> | 2017-01-07 09:13:33 -0800 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2017-01-13 08:28:21 -0800 |
commit | 32e3e93b01682382565c3e3a4eb5170c5bfed33a (patch) | |
tree | 5ebd96a62b3332d85d47d91045e9d06196ee01dc /tests/test-ptrace.c | |
parent | 5dcb7cd3cb63bf8a3a5f7531d10f937053930a25 (diff) | |
download | libunwind-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.c | 5 |
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] == '-') |