Make FS check more robust
authorMathis Rosenhauer <rosenhauer@dkrz.de>
Tue, 2 Oct 2012 13:38:08 +0000 (15:38 +0200)
committerThomas Jahns <jahns@dkrz.de>
Tue, 19 Feb 2013 10:33:00 +0000 (11:33 +0100)
tests/check_code_options.c

index ffd361a..12b328f 100644 (file)
@@ -103,9 +103,11 @@ int check_fs(struct test_state *state)
 
     for (tmp = state->ubuf;
          tmp < state->ubuf + state->buf_len;
-         tmp += 2 * state->byte_per_sample) {
-        state->out(tmp, state->xmin + 1, size);
+         tmp += 4 * state->byte_per_sample) {
+        state->out(tmp, state->xmin + 2, size);
         state->out(tmp + size, state->xmin, size);
+        state->out(tmp + 2 * size, state->xmin, size);
+        state->out(tmp + 3 * size, state->xmin, size);
     }
 
     printf("Checking FS ... ");