fix ill-coded utest_run::main
authorHomer Hsing <homer.xing@intel.com>
Thu, 31 Oct 2013 08:36:32 +0000 (16:36 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 4 Nov 2013 07:33:41 +0000 (15:33 +0800)
Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
utests/utest_run.cpp

index 94fbbee..cd4356a 100644 (file)
@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
     optarg = argv[1];
   }
 
-  {
+  do {
     switch (c)
     {
       case 'c':
@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
         usage();
         exit(1);
     }
-  } while ((c = getopt_long (argc, argv, shortopts, longopts, NULL)) != -1)
+  } while ((c = getopt_long (argc, argv, shortopts, longopts, NULL)) != -1);
 
   cl_ocl_destroy();
 }