add tests; build new way

This commit is contained in:
Marty Kraimer
2000-01-27 17:07:22 +00:00
parent 0184d31020
commit 393671c0b2
8 changed files with 417 additions and 15 deletions
+36
View File
@@ -0,0 +1,36 @@
/* threadTestMain.c */
/* Author: Marty Kraimer Date: 26JAN2000 */
/********************COPYRIGHT NOTIFICATION**********************************
This software was developed under a United States Government license
described on the COPYRIGHT_UniversityOfChicago file included as part
of this distribution.
****************************************************************************/
#include <stddef.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "osiThread.h"
void threadTest(int nthreads);
int main(int argc,char *argv[])
{
int nthreads = 2;
if(argc>1) {
if(isdigit(*argv[1])) {
sscanf(argv[1],"%d",&nthreads);
printf("nthreads %d\n",nthreads);
} else {
printf("Illegal argument %s\n",argv[0]);
}
}
if(nthreads>0) threadTest(nthreads);
printf("main terminating\n");
return(0);
}