mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 03:53:43 +01:00
Fix test-ptrace in automated mode
Tested via: ./test-ptrace ./test-ptrace -v /bin/ls /usr
This commit is contained in:
parent
3d5e6c1ddd
commit
538f63d796
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ main (int argc, char **argv)
|
|||
#error Trace me
|
||||
#endif
|
||||
|
||||
if (optind == argc) {
|
||||
if ((argc > 1) && (optind == argc)) {
|
||||
fprintf(stderr, "Need to specify a command line for the child\n");
|
||||
exit (-1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue