[Beignet] [PATCH] fix ill-coded utest_run::main

Homer Hsing homer.xing at intel.com
Thu Oct 31 09:36:32 CET 2013


Signed-off-by: Homer Hsing <homer.xing at intel.com>
---
 utests/utest_run.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utests/utest_run.cpp b/utests/utest_run.cpp
index 94fbbee..cd4356a 100644
--- a/utests/utest_run.cpp
+++ b/utests/utest_run.cpp
@@ -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();
 }
-- 
1.8.3.2



More information about the Beignet mailing list