diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-09-18 19:19:16 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-09-18 19:19:16 +0000 |
commit | ceaa863ddf2c057c98ae7480008cb6d951e91a4d (patch) | |
tree | 025b8ec0344bae64dc398b6ecda6074c0bdc2af7 /regress/sys/kern | |
parent | df7fe57724d56e279b04309ded1308122b0159d7 (diff) |
Add regression test for overlapping allocation that should coallesce but
currently doesn't.
Diffstat (limited to 'regress/sys/kern')
-rw-r--r-- | regress/sys/kern/extent/extest.exp | 5 | ||||
-rw-r--r-- | regress/sys/kern/extent/tests | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/regress/sys/kern/extent/extest.exp b/regress/sys/kern/extent/extest.exp index 930ba80a494..6312307f2e9 100644 --- a/regress/sys/kern/extent/extest.exp +++ b/regress/sys/kern/extent/extest.exp @@ -1,4 +1,4 @@ -# $OpenBSD: extest.exp,v 1.2 2009/04/10 20:57:04 kettenis Exp $ +# $OpenBSD: extest.exp,v 1.3 2009/09/18 19:19:15 kettenis Exp $ # $NetBSD: extest.exp,v 1.9 2005/03/15 18:27:23 bouyer Exp $ # real output must start in line 5 @@ -86,3 +86,6 @@ extent `test14' (0x0 - 0xffffffff), flags = 0x0 output for test15 extent `test15' (0x0 - 0xffffffff), flags = 0x0 0xf8000000 - 0xffffffff +output for test16 +extent `test16' (0x0 - 0xffffffff), flags = 0x0 + 0x0 - 0x1fffffff diff --git a/regress/sys/kern/extent/tests b/regress/sys/kern/extent/tests index a5ac81d077a..fe312a5ae4d 100644 --- a/regress/sys/kern/extent/tests +++ b/regress/sys/kern/extent/tests @@ -1,4 +1,4 @@ -# $OpenBSD: tests,v 1.3 2009/04/10 20:57:04 kettenis Exp $ +# $OpenBSD: tests,v 1.4 2009/09/18 19:19:15 kettenis Exp $ # $NetBSD: tests,v 1.9 2005/03/15 18:27:23 bouyer Exp $ #fill up an extent, should coalesce into one allocation @@ -123,3 +123,10 @@ alloc_region 0xfce00000 0x100 alloc_region 0xfee00000 0x100 alloc_region 0xf8000000 0x8000000 EX_CONFLICTOK print + +# Check coallescing in combination with overlaps +extent test16 0x00000000 0xffffffff +alloc_region 0x0 0xa0000 +alloc_region 0xf0000 0x1ff10000 +alloc_region 0xa0000 0x60000 EX_CONFLICTOK +print |