add remaining tests to testAll

This commit is contained in:
Michael Davidsaver
2011-02-09 21:02:30 -05:00
parent fc932f1ad2
commit 277c71c7de
16 changed files with 137 additions and 24 deletions

View File

@@ -19,8 +19,8 @@
using namespace epics::pvData;
void testGetSetClearFlip() {
printf("testGetSetClearFlip... ");
void testGetSetClearFlip(FILE *fd) {
fprintf(fd,"testGetSetClearFlip... ");
// empty
BitSet* b1 = new BitSet();
@@ -75,12 +75,12 @@ void testGetSetClearFlip() {
assert(str == "{}");
delete b1;
printf("PASSED\n");
fprintf(fd,"PASSED\n");
}
void testOperators() {
printf("testOperators... ");
void testOperators(FILE *fd) {
fprintf(fd,"testOperators... ");
BitSet b1;
assert(b1 == b1);
@@ -135,7 +135,7 @@ void testOperators() {
str.clear(); b1.toString(&str);
assert(str == "{2, 128}");
printf("PASSED\n");
fprintf(fd,"PASSED\n");
}
@@ -148,8 +148,8 @@ int main(int argc,char *argv[])
if(fileName!=0 && fileName[0]!=0) {
fd = fopen(fileName,"w+");
}
testGetSetClearFlip();
testOperators();
testGetSetClearFlip(fd);
testOperators(fd);
epicsExitCallAtExits();
CDRMonitor::get().show(fd);
return(0);