Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2011 16:33:11 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 190855 for review
Message-ID:  <201104011633.p31GXBoe076029@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@190855?ac=10

Change 190855 by jhb@jhb_jhbbsd on 2011/04/01 01:04:03

	More WIP.

Affected files ...

.. //depot/projects/pci/sys/modules/rman/rman.c#7 edit

Differences ...

==== //depot/projects/pci/sys/modules/rman/rman.c#7 (text+ko) ====

@@ -339,6 +339,8 @@
 static void
 region_regression_tests(void)
 {
+	struct region regions[3];
+
 
 	/* Clear any released resources. */
 	if (r != NULL) {
@@ -351,7 +353,13 @@
 	}
 	assert_rman_ok();
 
-	
+	/* Should have one region covering the full range. */
+	regions[0].start = REGION_START;
+	regions[0].end = REGION_END;
+	assert_rman_regions(regions, 1);
+
+	/* Release some holes to end up with two regions. */
+	rman_release_region
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104011633.p31GXBoe076029>