Commit 4e44ffd37e9d6611b8f24d6c9fb56e98b8cf7b06
1 parent
f114f0bd
Changed debugging statement
Showing
1 changed file
with
5 additions
and
5 deletions
test/test_GVO.cpp
| @@ -91,7 +91,7 @@ void TestGVO::test_GVOHub(void) | @@ -91,7 +91,7 @@ void TestGVO::test_GVOHub(void) | ||
| 91 | // Declare thread | 91 | // Declare thread |
| 92 | pthread_t thread; | 92 | pthread_t thread; |
| 93 | std::cout << "\n*** Before start of thread ***" << std::endl; | 93 | std::cout << "\n*** Before start of thread ***" << std::endl; |
| 94 | -system("netstat -natp tcp"); | 94 | +system("netstat -npta"); |
| 95 | 95 | ||
| 96 | // Start Hub in a thread | 96 | // Start Hub in a thread |
| 97 | test_try("Start hub"); | 97 | test_try("Start hub"); |
| @@ -103,7 +103,7 @@ system("netstat -natp tcp"); | @@ -103,7 +103,7 @@ system("netstat -natp tcp"); | ||
| 103 | test_try_failure(e); | 103 | test_try_failure(e); |
| 104 | } | 104 | } |
| 105 | std::cout << "\n*** After start of thread ***" << std::endl; | 105 | std::cout << "\n*** After start of thread ***" << std::endl; |
| 106 | -system("netstat -natp tcp"); | 106 | +system("netstat -npta"); |
| 107 | 107 | ||
| 108 | // Test Hub connection | 108 | // Test Hub connection |
| 109 | GVOClient client; | 109 | GVOClient client; |
| @@ -127,7 +127,7 @@ system("netstat -natp tcp"); | @@ -127,7 +127,7 @@ system("netstat -natp tcp"); | ||
| 127 | pthread_cancel(thread); | 127 | pthread_cancel(thread); |
| 128 | sleep(1); | 128 | sleep(1); |
| 129 | std::cout << "\n*** After thread canel ***" << std::endl; | 129 | std::cout << "\n*** After thread canel ***" << std::endl; |
| 130 | -system("netstat -natp tcp"); | 130 | +system("netstat -npta"); |
| 131 | 131 | ||
| 132 | // Return | 132 | // Return |
| 133 | return; | 133 | return; |
| @@ -151,7 +151,7 @@ void TestGVO::test_GVOClient(void) | @@ -151,7 +151,7 @@ void TestGVO::test_GVOClient(void) | ||
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | std::cout << "\n*** Before client connect ***" << std::endl; | 153 | std::cout << "\n*** Before client connect ***" << std::endl; |
| 154 | -system("netstat -natp tcp"); | 154 | +system("netstat -npta"); |
| 155 | // Create client | 155 | // Create client |
| 156 | GVOClient client; | 156 | GVOClient client; |
| 157 | 157 | ||
| @@ -160,7 +160,7 @@ system("netstat -natp tcp"); | @@ -160,7 +160,7 @@ system("netstat -natp tcp"); | ||
| 160 | test_assert(client.is_connected(), "Check for connection."); | 160 | test_assert(client.is_connected(), "Check for connection."); |
| 161 | //std::cout << client << std::endl; | 161 | //std::cout << client << std::endl; |
| 162 | std::cout << "\n*** After client connect ***" << std::endl; | 162 | std::cout << "\n*** After client connect ***" << std::endl; |
| 163 | -system("netstat -natp tcp"); | 163 | +system("netstat -npta"); |
| 164 | 164 | ||
| 165 | // Test ping | 165 | // Test ping |
| 166 | test_assert(client.ping_hub(), "Ping Hub."); | 166 | test_assert(client.ping_hub(), "Ping Hub."); |