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.3:
details: https://anonhg.NetBSD.org/src/rev/34cf01284a90
branches: netbsd-1-5
changeset: 488328:34cf01284a90
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jun 29 23:49:32 2000 +0000
description:
Pull up rev. 1.3:
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 b932f2d30acd -r 34cf01284a90 regress/sys/kern/extent/extest.exp
--- a/regress/sys/kern/extent/extest.exp Thu Jun 29 23:47:57 2000 +0000
+++ b/regress/sys/kern/extent/extest.exp Thu Jun 29 23:49:32 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.2.2.1 2000/06/29 23:49:32 thorpej 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 b932f2d30acd -r 34cf01284a90 regress/sys/kern/extent/tests
--- a/regress/sys/kern/extent/tests Thu Jun 29 23:47:57 2000 +0000
+++ b/regress/sys/kern/extent/tests Thu Jun 29 23:49:32 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tests,v 1.2 2000/06/16 18:50:46 drochner Exp $
+# $NetBSD: tests,v 1.2.2.1 2000/06/29 23:49:32 thorpej 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