From: Jose Fonseca Date: Wed, 13 Apr 2016 12:29:12 +0000 (+0100) Subject: test/unit: Make translate_test invoke translate_create by default. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ae0e8ee3cf5e422804dcecd248dc28bb5dc63dc;p=mesa.git test/unit: Make translate_test invoke translate_create by default. Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/tests/unit/translate_test.c b/src/gallium/tests/unit/translate_test.c index fc49862c2ca..7ca606750a9 100644 --- a/src/gallium/tests/unit/translate_test.c +++ b/src/gallium/tests/unit/translate_test.c @@ -70,8 +70,9 @@ int main(int argc, char** argv) util_cpu_detect(); - if(argc <= 1) - {} + if (argc <= 1 || + !strcmp(argv[1], "default") ) + create_fn = translate_create; else if (!strcmp(argv[1], "generic")) create_fn = translate_generic_create; else if (!strcmp(argv[1], "x86")) @@ -129,7 +130,7 @@ int main(int argc, char** argv) if (!create_fn) { - printf("Usage: ./translate_test [generic|x86|nosse|sse|sse2|sse3|sse4.1]\n"); + printf("Usage: ./translate_test [default|generic|x86|nosse|sse|sse2|sse3|sse4.1]\n"); return 2; }