summaryrefslogtreecommitdiff
path: root/harness
diff options
context:
space:
mode:
authorBen LaHaise <bcrl@kvack.org>2002-09-17 16:53:01 +0000
committerBen LaHaise <bcrl@kvack.org>2002-09-17 16:53:01 +0000
commit96051d7c9f09e572d1ecbb5535aa163998f76e11 (patch)
treefee670a5054c41a3b063336581dff03c7d0c8018 /harness
parent841fe4ad5306890f798816725ea35e0470eae9ff (diff)
downloadlibaio-96051d7c9f09e572d1ecbb5535aa163998f76e11.tar.gz
update test cases for ia64 quirks
Diffstat (limited to 'harness')
-rw-r--r--harness/cases/10.t8
-rw-r--r--harness/cases/4.t4
-rw-r--r--harness/ext2-enospc.imgbin409600 -> 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
index 74c0f0e..fa56745 100644
--- a/harness/ext2-enospc.img
+++ b/harness/ext2-enospc.img
Binary files differ