From a7cb3a35b2bc81f1e8107b6a147d7c86681f0b84 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Tue, 3 Jan 2012 13:08:11 +1300 Subject: [PATCH] WIP Changes to tests Signed-off-by: Charles Manning --- direct/basic-test/dtest.c | 2 +- linux-tests/verifybigsparse.c | 8 ++++---- linux-tests/writebigsparse.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/direct/basic-test/dtest.c b/direct/basic-test/dtest.c index 247aa48..0b67b7a 100644 --- a/direct/basic-test/dtest.c +++ b/direct/basic-test/dtest.c @@ -2826,7 +2826,7 @@ void verify_big_sparse_file(int h) 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", diff --git a/linux-tests/verifybigsparse.c b/linux-tests/verifybigsparse.c index 84ff53b..7a13dbc 100644 --- a/linux-tests/verifybigsparse.c +++ b/linux-tests/verifybigsparse.c @@ -8,8 +8,8 @@ #include -#define N_WRITES 2000 -#define STRIDE 2000 +#define N_WRITES 16 +#define STRIDE 250000 #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); } - 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", @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) 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"); diff --git a/linux-tests/writebigsparse.c b/linux-tests/writebigsparse.c index 9f95d24..aeb2535 100644 --- a/linux-tests/writebigsparse.c +++ b/linux-tests/writebigsparse.c @@ -7,8 +7,8 @@ #include -#define N_WRITES 2000 -#define STRIDE 2000 +#define N_WRITES 16 +#define STRIDE 250000 #define BUFFER_N 1100 unsigned xxbuffer[BUFFER_N]; -- 2.30.2