Forgot rwt5.

This commit is contained in:
Geoffrey Challen 2016-02-15 08:42:54 -05:00
parent 479acf49c2
commit dc00578b06
3 changed files with 17 additions and 0 deletions

View File

@ -69,6 +69,7 @@ int rwtest(int, char **);
int rwtest2(int, char **); int rwtest2(int, char **);
int rwtest3(int, char **); int rwtest3(int, char **);
int rwtest4(int, char **); int rwtest4(int, char **);
int rwtest5(int, char **);
/* semaphore unit tests */ /* semaphore unit tests */
int semu1(int, char **); int semu1(int, char **);

View File

@ -499,6 +499,7 @@ static const char *testmenu[] = {
"[rwt2] RW lock test 2 (1?) ", "[rwt2] RW lock test 2 (1?) ",
"[rwt3] RW lock test 3 (1?) ", "[rwt3] RW lock test 3 (1?) ",
"[rwt4] RW lock test 4 (1?) ", "[rwt4] RW lock test 4 (1?) ",
"[rwt5] RW lock test 5 (1?) ",
#if OPT_SYNCHPROBS #if OPT_SYNCHPROBS
"[sp1] Whalemating test (1) ", "[sp1] Whalemating test (1) ",
"[sp2] Stoplight test (1) ", "[sp2] Stoplight test (1) ",
@ -644,6 +645,7 @@ static struct {
{ "rwt2", rwtest2 }, { "rwt2", rwtest2 },
{ "rwt3", rwtest3 }, { "rwt3", rwtest3 },
{ "rwt4", rwtest4 }, { "rwt4", rwtest4 },
{ "rwt5", rwtest5 },
#if OPT_SYNCHPROBS #if OPT_SYNCHPROBS
{ "sp1", whalemating }, { "sp1", whalemating },
{ "sp2", stoplight }, { "sp2", stoplight },

View File

@ -12,6 +12,10 @@
#include <kern/secret.h> #include <kern/secret.h>
#include <spinlock.h> #include <spinlock.h>
/*
* Use these stubs to test your reader-writer locks.
*/
int rwtest(int nargs, char **args) { int rwtest(int nargs, char **args) {
(void)nargs; (void)nargs;
(void)args; (void)args;
@ -51,3 +55,13 @@ int rwtest4(int nargs, char **args) {
return 0; return 0;
} }
int rwtest5(int nargs, char **args) {
(void)nargs;
(void)args;
kprintf_n("rwt5 unimplemented\n");
success(FAIL, SECRET, "rwt5");
return 0;
}