1
0
Fork 0
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:
Arun Sharma 2012-08-11 21:21:54 -07:00
parent 3d5e6c1ddd
commit 538f63d796

View file

@ -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);
}