WIP Changes to tests
authorCharles Manning <cdhmanning@gmail.com>
Tue, 3 Jan 2012 00:08:11 +0000 (13:08 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 3 Jan 2012 00:10:18 +0000 (13:10 +1300)
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/basic-test/dtest.c
linux-tests/verifybigsparse.c
linux-tests/writebigsparse.c

index 247aa480c69dee4303ae8b63618dc7fa8f06130f..0b67b7a1fd4092d15f7a5aafe3530fe0fdcc1513 100644 (file)
@@ -2826,7 +2826,7 @@ void verify_big_sparse_file(int h)
                        check_type = "buffer";
                        set_buffer(i/STRIDE);
                }
                        check_type = "buffer";
                        set_buffer(i/STRIDE);
                }
-               printf("%s checking %lld\n", check_type, offset);
+               //printf("%s checking %lld\n", check_type, offset);
                pos = yaffs_lseek(h, offset, SEEK_SET);
                if(pos != offset) {
                        printf("mismatched seek pos %lld offset %lld\n",
                pos = yaffs_lseek(h, offset, SEEK_SET);
                if(pos != offset) {
                        printf("mismatched seek pos %lld offset %lld\n",
index 84ff53b690bec4ebd10f20cc1b36902c4221f3d7..7a13dbcd8f12a7b3b514bf092115795ce276635b 100644 (file)
@@ -8,8 +8,8 @@
 #include <string.h>
 
 
 #include <string.h>
 
 
-#define N_WRITES 2000
-#define STRIDE  2000
+#define N_WRITES 16
+#define STRIDE  250000
 
 #define BUFFER_N 1100
 unsigned  xxbuffer[BUFFER_N];
 
 #define BUFFER_N 1100
 unsigned  xxbuffer[BUFFER_N];
@@ -43,7 +43,7 @@ void verify_big_sparse_file(int h)
                        check_type = "buffer";
                        set_buffer(i/STRIDE);
                }
                        check_type = "buffer";
                        set_buffer(i/STRIDE);
                }
-               printf("%s checking %lld\n", check_type, offset);
+               //printf("%s checking %lld\n", check_type, offset);
                pos = lseek64(h, offset, SEEK_SET);
                if(pos != offset) {
                        printf("mismatched seek pos %lld offset %lld\n",
                pos = lseek64(h, offset, SEEK_SET);
                if(pos != offset) {
                        printf("mismatched seek pos %lld offset %lld\n",
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
                exit(1);
        }
 
                exit(1);
        }
 
-       handle = open(argv[1], O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE);
+       handle = open(argv[1], O_RDONLY);
 
        if(handle < 0) {
                perror("opening file");
 
        if(handle < 0) {
                perror("opening file");
index 9f95d2418d7c875e3cf5f25e19e8c8d6ee9b5913..aeb2535551b379ee96dd5e0dcf4a5c3892bcbc44 100644 (file)
@@ -7,8 +7,8 @@
 #include <stdlib.h>
 
 
 #include <stdlib.h>
 
 
-#define N_WRITES 2000
-#define STRIDE  2000
+#define N_WRITES 16
+#define STRIDE  250000
 
 #define BUFFER_N 1100
 unsigned  xxbuffer[BUFFER_N];
 
 #define BUFFER_N 1100
 unsigned  xxbuffer[BUFFER_N];