make tests more like regresion tests

This commit is contained in:
Marty Kraimer
2012-08-17 14:13:18 -04:00
parent 66fb300873
commit fbfed5bab1
18 changed files with 695 additions and 398 deletions

View File

@@ -53,6 +53,7 @@ static void testThreadRun(FILE *fd) {
ax.end.signal();
}
fprintf(fd, "Action is %s\n", ax.actuallyRan?"true":"false");
fprintf(fd,"testThreadRun PASSED\n");
}
class Basic :
@@ -101,6 +102,7 @@ static void testBasic(FILE *fd) {
ExecutorPtr executor( new Executor(String("basic"),middlePriority));
BasicPtr basic( new Basic(executor));
basic->run();
fprintf(fd,"testBasic PASSED\n");
}
class MyFunc : public TimeFunctionRequester {
@@ -131,6 +133,7 @@ static void testThreadContext(FILE *fd,FILE *auxFd) {
double perCall = timeFunction->timeCall();
perCall *= 1e6;
fprintf(auxFd,"time per call %f microseconds\n",perCall);
fprintf(fd,"testThreadContext PASSED\n");
}
int main(int argc, char *argv[]) {