int wrapper_exit_code = 1;
-#define TEST_BLOCKSIZE 0x20000
+#define TEST_BLOCKSIZE (sysconf(_SC_PAGESIZE)*2 + 0x10000)
+
static bool is_gremlin = false;
static int sync_p[2];
char f_name1[] = "/tmp/sigbus.XXXXXX";
int fd_src = mkstemp(f_name0);
int fd_dst = mkstemp(f_name1);
- char buf[TEST_BLOCKSIZE] = { [0] = '\0' };
+ char buf[TEST_BLOCKSIZE];
struct stat st;
bool res;
-
- fd_src =
-
- write(fd_src, buf, sizeof(buf));
+
+ memset(buf, 0, TEST_BLOCKSIZE);
+ write(fd_src, buf, TEST_BLOCKSIZE);
close(fd_src);
close(fd_dst);