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