1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-20 20:05:18 +02: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);
}