Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/regress/sys/kern/extent Pull up rev. 1.4:



details:   https://anonhg.NetBSD.org/src/rev/2a057150673e
branches:  netbsd-1-5
changeset: 488330:2a057150673e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jun 29 23:52:33 2000 +0000

description:
Pull up rev. 1.4:
Another `last boundary' test taking a different code path. This time
the allocation triggers a `boundary fixup' but should nevertheless
fit in the remaining space of the map.

diffstat:

 regress/sys/kern/extent/extest.exp |   8 +++++++-
 regress/sys/kern/extent/tests      |  12 +++++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r 3d4915f2ddcd -r 2a057150673e regress/sys/kern/extent/extest.exp
--- a/regress/sys/kern/extent/extest.exp        Thu Jun 29 23:51:22 2000 +0000
+++ b/regress/sys/kern/extent/extest.exp        Thu Jun 29 23:52:33 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extest.exp,v 1.2.2.1 2000/06/29 23:49:32 thorpej Exp $
+# $NetBSD: extest.exp,v 1.2.2.2 2000/06/29 23:52:33 thorpej Exp $
 # real output must start in line 4
 
 output for test1
@@ -31,3 +31,9 @@
 result: 0xa
 extent `test6' (0x0 - 0xc), flags = 0x0
      0x0 - 0xb
+output for test7
+result: 0x0
+result: 0x8
+extent `test7' (0x0 - 0xc), flags = 0x0
+     0x0 - 0x6
+     0x8 - 0xb
diff -r 3d4915f2ddcd -r 2a057150673e regress/sys/kern/extent/tests
--- a/regress/sys/kern/extent/tests     Thu Jun 29 23:51:22 2000 +0000
+++ b/regress/sys/kern/extent/tests     Thu Jun 29 23:52:33 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tests,v 1.2.2.1 2000/06/29 23:49:32 thorpej Exp $
+# $NetBSD: tests,v 1.2.2.2 2000/06/29 23:52:34 thorpej Exp $
 
 #fill up an extent, should coalesce into one allocation
 extent test1 0 0x4f
@@ -36,9 +36,19 @@
 print
 
 #check allocation beyond last boundary line (to be fixed)
+# last two allocations should succeed without boundary "fixups"
 extent test6 0 12
 boundary 8
 alloc_subregion 0 12 8
 alloc_subregion 0 12 2
 alloc_subregion 0 12 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
+boundary 8
+alloc_subregion 0 12 7
+alloc_subregion 0 12 4
+print



Home | Main Index | Thread Index | Old Index