diff --git a/kern/include/test.h b/kern/include/test.h index 6c96f48..cbd0a34 100644 --- a/kern/include/test.h +++ b/kern/include/test.h @@ -65,6 +65,7 @@ int cvtest(int, char **); int cvtest2(int, char **); int cvtest3(int, char **); int cvtest4(int, char **); +int cvtest5(int, char **); int rwtest(int, char **); int rwtest2(int, char **); int rwtest3(int, char **); diff --git a/kern/main/menu.c b/kern/main/menu.c index 0eb34ad..d2545a0 100644 --- a/kern/main/menu.c +++ b/kern/main/menu.c @@ -495,6 +495,7 @@ static const char *testmenu[] = { "[cvt2] CV test 2 (1) ", "[cvt3] CV test 3 (1*) ", "[cvt4] CV test 4 (1*) ", + "[cvt5] CV test 5 (1) ", "[rwt1] RW lock test (1?) ", "[rwt2] RW lock test 2 (1?) ", "[rwt3] RW lock test 3 (1?) ", @@ -641,6 +642,7 @@ static struct { { "cvt2", cvtest2 }, { "cvt3", cvtest3 }, { "cvt4", cvtest4 }, + { "cvt5", cvtest5 }, { "rwt1", rwtest }, { "rwt2", rwtest2 }, { "rwt3", rwtest3 }, diff --git a/kern/test/synchtest.c b/kern/test/synchtest.c index a90173d..8d5b28e 100644 --- a/kern/test/synchtest.c +++ b/kern/test/synchtest.c @@ -56,7 +56,9 @@ static volatile unsigned long testval3; static volatile int32_t testval4; static struct semaphore *testsem = NULL; +static struct semaphore *testsem2 = NULL; static struct lock *testlock = NULL; +static struct lock *testlock2 = NULL; static struct cv *testcv = NULL; static struct semaphore *donesem = NULL; @@ -292,18 +294,12 @@ locktest2(int nargs, char **args) { (void)nargs; (void)args; - int i; - kprintf_n("Starting lt2...\n"); kprintf_n("(This test panics on success!)\n"); - for (i=0; i