aboutsummaryrefslogtreecommitdiff
path: root/devel/ice/files/patch-cpp-test-Ice-hold-AllTests.cpp
blob: 6ba24af1d753de34637e83736ccbfabf3ea493b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- cpp/test/Ice/hold/AllTests.cpp.orig	2015-06-23 17:30:20.000000000 +0200
+++ cpp/test/Ice/hold/AllTests.cpp	2015-08-02 15:05:08.363617996 +0200
@@ -152,31 +152,46 @@
         ConditionPtr cond = new Condition(true);
         int value = 0;
         Ice::AsyncResultPtr result;
+        cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
         while(value < 3000 && cond->value())
         {
+            if (!value)
+                cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
             result = holdSerialized->begin_set(value + 1,
                                                IceUtilInternal::random(1),
                                                newCallback_Hold_set(new SetCB(cond, value), 
                                                                     &SetCB::response, 
                                                                     &SetCB::exception));
+            if (!value)
+                cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
             ++value;
             if(value % 100 == 0)
             {
+                cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
                 result->waitForSent();
             }
         }
+        cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
         result->waitForCompleted();
+        cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
         test(cond->value());
+        cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
 
         for(int i = 0; i < 10000; ++i)
         {
+            if (value == 3000)
+                cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
             holdSerialized->ice_oneway()->setOneway(value + 1, value);
+            if (value == 3000)
+                cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
             ++value;
             if((i % 100) == 0)
             {
+                cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
                 holdSerialized->ice_oneway()->putOnHold(1);
             }
         }
+        cout << __LINE__ << " (" << time(nullptr) << ")" << endl;
     }
     cout << "ok" << endl;