diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/clistress/main.cpp | 6 | ||||
| -rw-r--r-- | src/test/srvstress/main.cpp | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/test/clistress/main.cpp b/src/test/clistress/main.cpp index 0869945..6b0ac66 100644 --- a/src/test/clistress/main.cpp +++ b/src/test/clistress/main.cpp | |||
| @@ -6,10 +6,12 @@ int main() | |||
| 6 | 6 | ||
| 7 | c.open("localhost", 4001 ); | 7 | c.open("localhost", 4001 ); |
| 8 | 8 | ||
| 9 | c.appendOutput("d"); | 9 | c.appendOutput("w"); |
| 10 | c.writeOutput(); | 10 | c.writeOutput(); |
| 11 | 11 | ||
| 12 | c.waitForInput( 5, 40, 0 ); | 12 | c.waitForInput( 6, 5, 0 ); |
| 13 | |||
| 14 | printf("read: %s\n", c.getInput() ); | ||
| 13 | 15 | ||
| 14 | c.close(); | 16 | c.close(); |
| 15 | 17 | ||
diff --git a/src/test/srvstress/main.cpp b/src/test/srvstress/main.cpp index c7795e4..7fe7657 100644 --- a/src/test/srvstress/main.cpp +++ b/src/test/srvstress/main.cpp | |||
| @@ -13,6 +13,10 @@ public: | |||
| 13 | case 'd': | 13 | case 'd': |
| 14 | throw "Hello"; | 14 | throw "Hello"; |
| 15 | break; | 15 | break; |
| 16 | |||
| 17 | case 'w': | ||
| 18 | getConnection()->appendOutput("Hello"); | ||
| 19 | break; | ||
| 16 | }; | 20 | }; |
| 17 | 21 | ||
| 18 | return true; | 22 | return true; |
