RW test stub.

This commit is contained in:
Geoffrey Challen 2015-12-31 13:56:21 -05:00
parent 89ba79cdb4
commit 1b63251154
3 changed files with 18 additions and 0 deletions

View File

@ -54,6 +54,7 @@ int semtest(int, char **);
int locktest(int, char **); int locktest(int, char **);
int cvtest(int, char **); int cvtest(int, char **);
int cvtest2(int, char **); int cvtest2(int, char **);
int rwtest(int, char **);
/* semaphore unit tests */ /* semaphore unit tests */
int semu1(int, char **); int semu1(int, char **);

View File

@ -477,6 +477,7 @@ static const char *testmenu[] = {
"[sy2] Lock test (1) ", "[sy2] Lock test (1) ",
"[sy3] CV test (1) ", "[sy3] CV test (1) ",
"[sy4] CV test #2 (1) ", "[sy4] CV test #2 (1) ",
"[sy5] RW lock test (1) ",
"[semu1-22] Semaphore unit tests ", "[semu1-22] Semaphore unit tests ",
"[fs1] Filesystem test ", "[fs1] Filesystem test ",
"[fs2] FS read stress ", "[fs2] FS read stress ",
@ -579,6 +580,7 @@ static struct {
{ "sy2", locktest }, { "sy2", locktest },
{ "sy3", cvtest }, { "sy3", cvtest },
{ "sy4", cvtest2 }, { "sy4", cvtest2 },
{ "sy5", rwtest },
/* semaphore unit tests */ /* semaphore unit tests */
{ "semu1", semu1 }, { "semu1", semu1 },

View File

@ -487,3 +487,18 @@ cvtest2(int nargs, char **args)
return 0; return 0;
} }
/*
* Complete this for ASST1.
*/
int rwtest(int nargs, char **args) {
(void) nargs;
(void) args;
tkprintf("rwtest unimplemented\n");
success(FAIL, "rwtest");
return 0;
}