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

Zhigang Gong zhigang.gong at linux.intel.com
Sun Nov 3 22:50:39 PST 2013


LGTM, will push latter. Thanks.

On Thu, Oct 31, 2013 at 04:36:32PM +0800, Homer Hsing wrote:
> 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
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list