Changeset 2484
- Timestamp:
- 02/04/07 18:17:02 (2 years ago)
- Files:
-
- trunk/lib_internal/testsuite/sigbus.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib_internal/testsuite/sigbus.c
r2461 r2484 34 34 int wrapper_exit_code = 1; 35 35 36 #define TEST_BLOCKSIZE 0x20000 36 #define TEST_BLOCKSIZE (sysconf(_SC_PAGESIZE)*2 + 0x10000) 37 37 38 static bool is_gremlin = false; 38 39 static int sync_p[2]; … … 82 83 int fd_src = mkstemp(f_name0); 83 84 int fd_dst = mkstemp(f_name1); 84 char buf[TEST_BLOCKSIZE] = { [0] = '\0' };85 char buf[TEST_BLOCKSIZE]; 85 86 struct stat st; 86 87 bool res; 87 88 fd_src = 89 90 write(fd_src, buf, sizeof(buf)); 88 89 memset(buf, 0, TEST_BLOCKSIZE); 90 write(fd_src, buf, TEST_BLOCKSIZE); 91 91 close(fd_src); 92 92 close(fd_dst);
