Renamed C Test Functions

This commit is contained in:
Chris Teubert
2014-12-01 14:03:13 -08:00
parent 405062e475
commit 0718ca8e3e
3 changed files with 20 additions and 20 deletions

View File

@@ -32,14 +32,14 @@ void runTest(short (*f)())
} }
} }
short test1() // openUDP Test short openTest() // openUDP Test
{ {
printf("openUDP - "); printf("openUDP - ");
struct xpcSocket sendPort = openUDP( 49062, "127.0.0.1", 49009 ); struct xpcSocket sendPort = openUDP( 49062, "127.0.0.1", 49009 );
return 0; return 0;
} }
short test2() // closeUDP test short closeTest() // closeUDP test
{ {
printf("closeUDP - "); printf("closeUDP - ");
struct xpcSocket sendPort = openUDP( 49063, "127.0.0.1", 49009 ); struct xpcSocket sendPort = openUDP( 49063, "127.0.0.1", 49009 );
@@ -47,7 +47,7 @@ short test2() // closeUDP test
return 0; return 0;
} }
short test3() // send/read Test short sendReadTest() // send/read Test
{ {
printf("send/readUDP - "); printf("send/readUDP - ");
@@ -81,7 +81,7 @@ short test3() // send/read Test
return 0; return 0;
} }
short test4() // Request DREF Test (Required for next tests) short requestDREFTest() // Request DREF Test (Required for next tests)
{ {
printf("requestDREF - "); printf("requestDREF - ");
@@ -125,7 +125,7 @@ short test4() // Request DREF Test (Required for next tests)
return 0; return 0;
} }
short test5() // sendDREF test short sendDREFTest() // sendDREF test
{ {
printf("sendDREF - "); printf("sendDREF - ");
@@ -174,7 +174,7 @@ short test5() // sendDREF test
return 0; return 0;
} }
short test6() // sendDATA test short sendDATATest() // sendDATA test
{ {
printf("sendData - "); printf("sendData - ");
@@ -229,7 +229,7 @@ short test6() // sendDATA test
return 0; return 0;
} }
short test7() // sendCTRL test short sendCTRLTest() // sendCTRL test
{ {
printf("sendCTRL - "); printf("sendCTRL - ");
@@ -278,7 +278,7 @@ short test7() // sendCTRL test
return 0; return 0;
} }
short test8() // sendPOSI test short sendPOSITest() // sendPOSI test
{ {
printf("sendPOSI - "); printf("sendPOSI - ");
@@ -321,7 +321,7 @@ short test8() // sendPOSI test
return 0; return 0;
} }
short test9() // pauseSim test short pauseTest() // pauseSim test
{ {
printf("pauseSim - "); printf("pauseSim - ");
@@ -344,7 +344,7 @@ short test9() // pauseSim test
return 0; return 0;
} }
short test10() // setConn test short connTest() // setConn test
{ {
printf("setConn - "); printf("setConn - ");
@@ -399,16 +399,16 @@ int main(int argc, const char * argv[])
printf("(Linux) \n"); printf("(Linux) \n");
#endif #endif
runTest(test1); runTest(openTest);
runTest(test2); runTest(closeTest);
runTest(test3); runTest(sendReadTest);
runTest(test4); runTest(requestDREFTest);
runTest(test5); runTest(sendDREFTest);
runTest(test6); runTest(sendDATATest);
runTest(test7); runTest(sendCTRLTest);
runTest(test8); runTest(sendPOSITest);
runTest(test9); runTest(pauseTest);
runTest(test10); runTest(connTest);
printf( "----------------\nTest Summary\n\tFailed: %i\n\tPassed: %i\n", testFailed, testPassed ); printf( "----------------\nTest Summary\n\tFailed: %i\n\tPassed: %i\n", testFailed, testPassed );