From 538f63d796fd7cddb7d585972babf93ca906f1c6 Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Sat, 11 Aug 2012 21:21:54 -0700 Subject: [PATCH] Fix test-ptrace in automated mode Tested via: ./test-ptrace ./test-ptrace -v /bin/ls /usr --- tests/test-ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c index 8f2e1cb1..7d762007 100644 --- a/tests/test-ptrace.c +++ b/tests/test-ptrace.c @@ -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); }