summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/test/Ice/gc/Client.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/cpp/test/Ice/gc/Client.cpp b/cpp/test/Ice/gc/Client.cpp
index fb1b42ce038..b05f9b7c84f 100644
--- a/cpp/test/Ice/gc/Client.cpp
+++ b/cpp/test/Ice/gc/Client.cpp
@@ -491,7 +491,7 @@ MyApplication::run(int argc, char* argv[])
{
if(interrupted())
{
- return EXIT_SUCCESS;
+ break;
}
garbageThread->randomWait();
Ice::collectGarbage();
@@ -500,9 +500,15 @@ MyApplication::run(int argc, char* argv[])
garbageThread->stop();
Ice::collectGarbage();
test(num == 0);
- cout << "ok" << endl;
-
- return EXIT_SUCCESS;
+ if(!interrupted())
+ {
+ cout << "ok" << endl;
+ return EXIT_SUCCESS;
+ }
+ else
+ {
+ return 130; // SIGINT + 128
+ }
}
int