diff options
Diffstat (limited to 'harness')
-rw-r--r-- | harness/cases/10.t | 8 | ||||
-rw-r--r-- | harness/cases/4.t | 4 | ||||
-rw-r--r-- | harness/ext2-enospc.img | bin | 409600 -> 409600 bytes |
3 files changed, 10 insertions, 2 deletions
diff --git a/harness/cases/10.t b/harness/cases/10.t index e1ff4fe..9d3beb2 100644 --- a/harness/cases/10.t +++ b/harness/cases/10.t @@ -13,8 +13,12 @@ int test_main(void) { -#define LIMIT 8192 -#define SIZE 8192 +/* Note: changing either of these requires updating the ext2-enospc.img + * filesystem image. Also, if SIZE is less than PAGE_SIZE, problems + * crop up due to ext2's preallocation. + */ +#define LIMIT 65536 +#define SIZE 65536 char *buf; int rwfd; int status = 0, res; diff --git a/harness/cases/4.t b/harness/cases/4.t index e6b6ef5..972b4f2 100644 --- a/harness/cases/4.t +++ b/harness/cases/4.t @@ -61,7 +61,11 @@ int test_main(void) status |= attempt(rwfd, KERNEL_RW_POINTER, SIZE, 0, READ, -EFAULT); status |= attempt(rwfd, KERNEL_RW_POINTER, SIZE, 0, WRITE, -EFAULT); + + /* Some architectures map the 0 page. Ugh. */ +#if !defined(__ia64__) status |= attempt(rwfd, NULL, SIZE, 0, WRITE, -EFAULT); +#endif return status; } diff --git a/harness/ext2-enospc.img b/harness/ext2-enospc.img Binary files differindex 74c0f0e..fa56745 100644 --- a/harness/ext2-enospc.img +++ b/harness/ext2-enospc.img |