summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpk <pk@NetBSD.org>2000-07-02 22:36:50 +0000
committerpk <pk@NetBSD.org>2000-07-02 22:36:50 +0000
commitbb91cdc5accf8727b10cb6641fedd45315b279fc (patch)
treec5fa0e716770387fed25797660aafe32113dfc6c
parent9928e1fe95985ea67ab1ae09275449a23cb36d2a (diff)
test 6 & 7: make the extent have the intended total of size 12 (noticed
by Matthias Drochner).
-rw-r--r--regress/sys/kern/extent/extest.exp6
-rw-r--r--regress/sys/kern/extent/tests16
2 files changed, 11 insertions, 11 deletions
diff --git a/regress/sys/kern/extent/extest.exp b/regress/sys/kern/extent/extest.exp
index 6e4faeef6f0..048b89531ac 100644
--- a/regress/sys/kern/extent/extest.exp
+++ b/regress/sys/kern/extent/extest.exp
@@ -1,4 +1,4 @@
-# $NetBSD: extest.exp,v 1.4 2000/06/27 21:30:03 pk Exp $
+# $NetBSD: extest.exp,v 1.5 2000/07/02 22:36:50 pk Exp $
# real output must start in line 4
output for test1
@@ -29,11 +29,11 @@ output for test6
result: 0x0
result: 0x8
result: 0xa
-extent `test6' (0x0 - 0xc), flags = 0x0
+extent `test6' (0x0 - 0xb), flags = 0x0
0x0 - 0xb
output for test7
result: 0x0
result: 0x8
-extent `test7' (0x0 - 0xc), flags = 0x0
+extent `test7' (0x0 - 0xb), flags = 0x0
0x0 - 0x6
0x8 - 0xb
diff --git a/regress/sys/kern/extent/tests b/regress/sys/kern/extent/tests
index e0332c44bf4..4230401528a 100644
--- a/regress/sys/kern/extent/tests
+++ b/regress/sys/kern/extent/tests
@@ -1,4 +1,4 @@
-# $NetBSD: tests,v 1.4 2000/06/27 21:30:03 pk Exp $
+# $NetBSD: tests,v 1.5 2000/07/02 22:36:50 pk Exp $
#fill up an extent, should coalesce into one allocation
extent test1 0 0x4f
@@ -37,18 +37,18 @@ print
#check allocation beyond last boundary line (to be fixed)
# last two allocations should succeed without boundary "fixups"
-extent test6 0 12
+extent test6 0 11
boundary 8
-alloc_subregion 0 12 8
-alloc_subregion 0 12 2
-alloc_subregion 0 12 2
+alloc_subregion 0 11 8
+alloc_subregion 0 11 2
+alloc_subregion 0 11 2
print
#check allocation beyond last boundary line (to be fixed)
# last allocation should be bumped to the next boundary and exactly fit
# the remaining space
-extent test7 0 12
+extent test7 0 11
boundary 8
-alloc_subregion 0 12 7
-alloc_subregion 0 12 4
+alloc_subregion 0 11 7
+alloc_subregion 0 11 4
print