Skip to content

Commit 6e037b3

Browse files
authored
Merge pull request #2495 from DOCGroup/mergify/bp/ace6tao2/pr-2494
Shorten Dispatch to Disp, Dispatch triggers for a Win32 application t… (backport #2494)
2 parents 63eab10 + 3a8ee5d commit 6e037b3

File tree

10 files changed

+25
-30
lines changed

10 files changed

+25
-30
lines changed

ACE/tests/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@
195195
/QtReactor_Test
196196
/QtReactor_Test_moc.cpp
197197
/RB_Tree_Test
198-
/Reactor_Dispatch_Order_Test
199-
/Reactor_Dispatch_Order_Test_Dev_Poll
198+
/Reactor_Disp_Order_Test
199+
/Reactor_Disp_Order_Test_Dev_Poll
200200
/Reactor_Exceptions_Test
201201
/Reactor_Fairness_Test
202202
/Reactor_Notification_Queue_Test
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
//=============================================================================
33
/**
4-
* @file Reactor_Dispatch_Order_Test.cpp
4+
* @file Reactor_Disp_Order_Test.cpp
55
*
66
* This is a simple test that checks the order of dispatching of
77
* ACE Reactors. Order should be: timeout, output, and then input.
@@ -257,7 +257,7 @@ test_reactor_dispatch_order (ACE_Reactor &reactor)
257257
int
258258
run_main (int, ACE_TCHAR *[])
259259
{
260-
ACE_START_TEST (ACE_TEXT ("Reactor_Dispatch_Order_Test"));
260+
ACE_START_TEST (ACE_TEXT ("Reactor_Disp_Order_Test"));
261261

262262
int result = 0;
263263
ACE_Select_Reactor select_reactor_impl;

ACE/tests/Reactor_Dispatch_Order_Test_Dev_Poll.cpp renamed to ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
//=============================================================================
33
/**
4-
* @file Reactor_Dispatch_Order_Test_Dev_Poll.cpp
4+
* @file Reactor_Disp_Order_Test_Dev_Poll.cpp
55
*
66
* This is a simple test that checks the order of dispatching of
77
* ACE Reactors. Order should be: timeout, output, and then input.
@@ -233,29 +233,24 @@ test_reactor_dispatch_order (ACE_Reactor &reactor)
233233

234234
return ok_to_go;
235235
}
236+
#endif /* ACE_HAS_DEV_POLL || ACE_HAS_EVENT_POLL */
236237

237238
int
238239
run_main (int, ACE_TCHAR *[])
239240
{
240-
ACE_START_TEST (ACE_TEXT ("Reactor_Dispatch_Order_Test_Dev_Poll"));
241+
ACE_START_TEST (ACE_TEXT ("Reactor_Disp_Order_Test_Dev_Poll"));
241242
int result = 0;
242243

244+
#if defined (ACE_HAS_DEV_POLL) || defined (ACE_HAS_EVENT_POLL)
243245
ACE_Dev_Poll_Reactor dev_poll_reactor_impl;
244246
ACE_Reactor dev_poll_reactor (&dev_poll_reactor_impl);
245247
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Testing Dev Poll Reactor\n")));
246248
if (!test_reactor_dispatch_order (dev_poll_reactor))
247249
++result;
248-
249-
ACE_END_TEST;
250-
return result;
251-
}
252250
#else
253-
int
254-
run_main (int, ACE_TCHAR *[])
255-
{
256-
ACE_START_TEST (ACE_TEXT ("Reactor_Dispatch_Order_Test_Dev_Poll"));
257251
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("ACE_Dev_Poll_Reactor is UNSUPPORTED on this platform\n")));
252+
#endif /* ACE_HAS_DEV_POLL || ACE_HAS_EVENT_POLL */
253+
258254
ACE_END_TEST;
259-
return 0;
255+
return result;
260256
}
261-
#endif /* ACE_HAS_DEV_POLL || ACE_HAS_EVENT_POLL */

ACE/tests/run_test.lst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ Process_Mutex_Test: !VxWorks !ACE_FOR_TAO !PHARLAP
198198
Process_Semaphore_Test: !VxWorks !ACE_FOR_TAO !PHARLAP
199199
RB_Tree_Test
200200
Bug_3332_Regression_Test
201-
Reactor_Dispatch_Order_Test
202-
Reactor_Dispatch_Order_Test_Dev_Poll:
201+
Reactor_Disp_Order_Test
202+
Reactor_Disp_Order_Test_Dev_Poll:
203203
Reactor_Exceptions_Test
204204
Reactor_Fairness_Test: !FIXED_BUGS_ONLY
205205
Reactor_Notify_Test: !ST !ACE_FOR_TAO

ACE/tests/tests.mpc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,17 +1462,17 @@ project(Reactor Notification Queue Test) : acetest {
14621462
}
14631463
}
14641464

1465-
project(Reactor Dispatch Order Test) : acetest {
1466-
exename = Reactor_Dispatch_Order_Test
1465+
project(Reactor Disp Order Test) : acetest {
1466+
exename = Reactor_Disp_Order_Test
14671467
Source_Files {
1468-
Reactor_Dispatch_Order_Test.cpp
1468+
Reactor_Disp_Order_Test.cpp
14691469
}
14701470
}
14711471

1472-
project(Reactor_Dispatch_Order_Test_Dev_Poll) : acetest {
1473-
exename = Reactor_Dispatch_Order_Test_Dev_Poll
1472+
project(Reactor_Disp_Order_Test_Dev_Poll) : acetest {
1473+
exename = Reactor_Disp_Order_Test_Dev_Poll
14741474
Source_Files {
1475-
Reactor_Dispatch_Order_Test_Dev_Poll.cpp
1475+
Reactor_Disp_Order_Test_Dev_Poll.cpp
14761476
}
14771477
}
14781478

TAO/orbsvcs/tests/Notify/Basic/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
/MultiTypes
88
/Sequence
99
/Simple
10-
/Updates
10+
/Upd

TAO/orbsvcs/tests/Notify/Basic/Basic.mpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ project(*Notify Extended Filter): notifytest {
6464
}
6565

6666
project(*Notify Updates): notifytest {
67-
exename = Updates
67+
exename = Upd
6868
Source_Files {
6969
Updates.cpp
7070
}

TAO/orbsvcs/tests/Notify/Basic/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Basic Tests
44
===========
55

6-
Updates:
6+
Upd:
77
-------
88
This test will check if the subscription and publication update messages
99
from the event channel are properly received from the Notify Service.
@@ -107,4 +107,4 @@ command line options:
107107
-SupplierBatchSize [count]
108108
-ConsumerBatchSize [count]
109109
-ConsumerDelay [delay]
110-
-InitialDelay [delay]
110+
-InitialDelay [delay]

TAO/orbsvcs/tests/Notify/Basic/run_test.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
name => "Filter",
6868
args => "",
6969
}, {
70-
name => "Updates",
70+
name => "Upd",
7171
args => "",
7272
}, {
7373
name => "Sequence",

TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
name => "Filter",
6868
args => "-ORBConnectIPV6Only 1",
6969
}, {
70-
name => "Updates",
70+
name => "Upd",
7171
args => "-ORBConnectIPV6Only 1",
7272
}, {
7373
name => "Sequence",

0 commit comments

Comments
 (0)