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 for the bug fixed in subr...



details:   https://anonhg.NetBSD.org/src/rev/4eb13865fa87
branches:  trunk
changeset: 521962:4eb13865fa87
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Feb 09 15:58:35 2002 +0000

description:
Add a test for the bug fixed in subr_extent rev 1.45, as suggested by
thorpej%netbsd.org@localhost.

diffstat:

 regress/sys/kern/extent/tests |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 56325fa8c0d6 -r 4eb13865fa87 regress/sys/kern/extent/tests
--- a/regress/sys/kern/extent/tests     Sat Feb 09 15:20:49 2002 +0000
+++ b/regress/sys/kern/extent/tests     Sat Feb 09 15:58:35 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tests,v 1.6 2001/08/27 13:35:45 enami Exp $
+# $NetBSD: tests,v 1.7 2002/02/09 15:58:35 bouyer Exp $
 
 #fill up an extent, should coalesce into one allocation
 extent test1 0 0x4f
@@ -61,3 +61,14 @@
 alloc_subregion 0 0xf 0x10
 alloc_subregion 0 0xf 0x10
 print
+
+#When allocating a region with a boundary constraint, check that we properly
+#detect overlaps once the candidate region has been aligned.
+#subr_extent.c prior 1.45 could corrupt the extent map in this situation
+extent test9 0 0x4f
+boundary 0
+alloc_subregion 0 0x10 4
+alloc_subregion 0xd 0x20 2
+boundary 8
+alloc_subregion 0 0x4f 8
+print



Home | Main Index | Thread Index | Old Index