PERFORCE change 190855 for review

John Baldwin jhb at FreeBSD.org
Fri Apr 1 16:33:16 UTC 2011


http://p4web.freebsd.org/@@190855?ac=10

Change 190855 by jhb at 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


More information about the p4-projects mailing list