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 Add a test to check whether allocati...
details: https://anonhg.NetBSD.org/src/rev/082839b2b4ec
branches: trunk
changeset: 493953:082839b2b4ec
user: pk <pk%NetBSD.org@localhost>
date: Tue Jun 27 21:08:30 2000 +0000
description:
Add a test to check whether allocation succeeds beyond the last boundary
line in case the last boundary does not coincide with the extent end.
diffstat:
regress/sys/kern/extent/extest.exp | 8 +++++++-
regress/sys/kern/extent/tests | 10 +++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r ea5f6f77a82e -r 082839b2b4ec regress/sys/kern/extent/extest.exp
--- a/regress/sys/kern/extent/extest.exp Tue Jun 27 21:06:24 2000 +0000
+++ b/regress/sys/kern/extent/extest.exp Tue Jun 27 21:08:30 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extest.exp,v 1.2 2000/06/16 18:50:46 drochner Exp $
+# $NetBSD: extest.exp,v 1.3 2000/06/27 21:08:30 pk Exp $
# real output must start in line 4
output for test1
@@ -25,3 +25,9 @@
result: 0xf0000000
extent `test5' (0xf0000000 - 0xffffffff), flags = 0x0
0xf0000000 - 0xf0000000
+output for test6
+result: 0x0
+result: 0x8
+result: 0xa
+extent `test6' (0x0 - 0xc), flags = 0x0
+ 0x0 - 0xb
diff -r ea5f6f77a82e -r 082839b2b4ec regress/sys/kern/extent/tests
--- a/regress/sys/kern/extent/tests Tue Jun 27 21:06:24 2000 +0000
+++ b/regress/sys/kern/extent/tests Tue Jun 27 21:08:30 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tests,v 1.2 2000/06/16 18:50:46 drochner Exp $
+# $NetBSD: tests,v 1.3 2000/06/27 21:08:31 pk Exp $
#fill up an extent, should coalesce into one allocation
extent test1 0 0x4f
@@ -34,3 +34,11 @@
boundary 0x20000000
alloc_subregion 0xf0000000 0xffffffff 0x1
print
+
+#check allocation beyond last boundary line (to be fixed)
+extent test6 0 12
+boundary 8
+alloc_subregion 0 12 8
+alloc_subregion 0 12 2
+alloc_subregion 0 12 2
+print
Home |
Main Index |
Thread Index |
Old Index