|
From: <sv...@va...> - 2008-07-01 13:16:14
|
Author: bart
Date: 2008-07-01 14:16:23 +0100 (Tue, 01 Jul 2008)
New Revision: 8328
Log:
Exit if the required argument is missing.
Modified:
trunk/exp-drd/tests/omp_matinv.c
trunk/exp-drd/tests/omp_prime.c
Modified: trunk/exp-drd/tests/omp_matinv.c
===================================================================
--- trunk/exp-drd/tests/omp_matinv.c 2008-07-01 13:16:07 UTC (rev 8327)
+++ trunk/exp-drd/tests/omp_matinv.c 2008-07-01 13:16:23 UTC (rev 8328)
@@ -299,6 +299,7 @@
if (optind + 1 != argc)
{
fprintf(stderr, "Error: wrong number of arguments.\n");
+ return 1;
}
matrix_size = atoi(argv[optind]);
Modified: trunk/exp-drd/tests/omp_prime.c
===================================================================
--- trunk/exp-drd/tests/omp_prime.c 2008-07-01 13:16:07 UTC (rev 8327)
+++ trunk/exp-drd/tests/omp_prime.c 2008-07-01 13:16:23 UTC (rev 8328)
@@ -57,6 +57,7 @@
if (optind + 1 != argc)
{
fprintf(stderr, "Error: wrong number of arguments.\n");
+ return 1;
}
n = atoi(argv[optind]);
|