Source-Changes-HG archive

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

[src/trunk]: src/regress/sys/kern/extent Another `last boundary' test taking ...



details:   https://anonhg.NetBSD.org/src/rev/04a338df36b9
branches:  trunk
changeset: 493956:04a338df36b9
user:      pk <pk%NetBSD.org@localhost>
date:      Tue Jun 27 21:30:03 2000 +0000

description:
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 509c30b21f3f -r 04a338df36b9 regress/sys/kern/extent/extest.exp
--- a/regress/sys/kern/extent/extest.exp        Tue Jun 27 21:25:02 2000 +0000
+++ b/regress/sys/kern/extent/extest.exp        Tue Jun 27 21:30:03 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extest.exp,v 1.3 2000/06/27 21:08:30 pk Exp $
+# $NetBSD: extest.exp,v 1.4 2000/06/27 21:30:03 pk 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 509c30b21f3f -r 04a338df36b9 regress/sys/kern/extent/tests
--- a/regress/sys/kern/extent/tests     Tue Jun 27 21:25:02 2000 +0000
+++ b/regress/sys/kern/extent/tests     Tue Jun 27 21:30:03 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tests,v 1.3 2000/06/27 21:08:31 pk Exp $
+# $NetBSD: tests,v 1.4 2000/06/27 21:30:03 pk 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