Forgot rwt5.
This commit is contained in:
		| @@ -69,6 +69,7 @@ int rwtest(int, char **); | ||||
| int rwtest2(int, char **); | ||||
| int rwtest3(int, char **); | ||||
| int rwtest4(int, char **); | ||||
| int rwtest5(int, char **); | ||||
|  | ||||
| /* semaphore unit tests */ | ||||
| int semu1(int, char **); | ||||
|   | ||||
| @@ -499,6 +499,7 @@ static const char *testmenu[] = { | ||||
| 	"[rwt2] RW lock test 2        (1?)   ", | ||||
| 	"[rwt3] RW lock test 3        (1?)   ", | ||||
| 	"[rwt4] RW lock test 4        (1?)   ", | ||||
| 	"[rwt5] RW lock test 5        (1?)   ", | ||||
| #if OPT_SYNCHPROBS | ||||
| 	"[sp1] Whalemating test       (1)    ", | ||||
| 	"[sp2] Stoplight test         (1)    ", | ||||
| @@ -644,6 +645,7 @@ static struct { | ||||
| 	{ "rwt2",	rwtest2 }, | ||||
| 	{ "rwt3",	rwtest3 }, | ||||
| 	{ "rwt4",	rwtest4 }, | ||||
| 	{ "rwt5",	rwtest5 }, | ||||
| #if OPT_SYNCHPROBS | ||||
| 	{ "sp1",	whalemating }, | ||||
| 	{ "sp2",	stoplight }, | ||||
|   | ||||
| @@ -12,6 +12,10 @@ | ||||
| #include <kern/secret.h> | ||||
| #include <spinlock.h> | ||||
|  | ||||
| /* | ||||
|  * Use these stubs to test your reader-writer locks. | ||||
|  */ | ||||
|  | ||||
| int rwtest(int nargs, char **args) { | ||||
| 	(void)nargs; | ||||
| 	(void)args; | ||||
| @@ -51,3 +55,13 @@ int rwtest4(int nargs, char **args) { | ||||
|  | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| int rwtest5(int nargs, char **args) { | ||||
| 	(void)nargs; | ||||
| 	(void)args; | ||||
|  | ||||
| 	kprintf_n("rwt5 unimplemented\n"); | ||||
| 	success(FAIL, SECRET, "rwt5"); | ||||
|  | ||||
| 	return 0; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user