Skip to content

Commit 0dc7f9d

Browse files
committed
add LINE to printf and increase problem size
1 parent fc1ff4d commit 0dc7f9d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/testcases/tst_redefine.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include <testutils.h>
3434

35-
#define LEN 16
35+
#define LEN 101
3636

3737
#define RNDUP(x, unit) ((((x) + (unit) - 1) / (unit)) * (unit))
3838

@@ -159,7 +159,11 @@ check_vars(MPI_Comm comm, int ncid, int *varid)
159159
} \
160160
/* read variables back and check contents */ \
161161
nerrs += check_vars(comm, ncid, varid); \
162-
if (nerrs > 0) goto err_out; \
162+
if (nerrs > 0) { \
163+
printf("Error at line %d in %s: check_vars failed\n", \
164+
__LINE__,__FILE__); \
165+
goto err_out; \
166+
} \
163167
}
164168

165169
#define GROW_METADATA(growth) { \

0 commit comments

Comments
 (0)