Skip to content

Commit 5a468cb

Browse files
authored
Merge branch 'master' into jwi-ACE_HAS_TIME_T_LONG_MISMATCH
2 parents 7b35bbf + 18aa516 commit 5a468cb

11 files changed

Lines changed: 21 additions & 34 deletions

ACE/tests/Compiler_Features_16_Test.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include <stdint.h>
1010
#include <ostream>
1111

12-
static constexpr uint32_t bound = std::numeric_limits<uint32_t>::max();
13-
1412
namespace CORBA {
1513
// First forward declare TCKind, this is legal with C++11
1614
enum class TCKind : uint32_t;
@@ -25,10 +23,9 @@ namespace CORBA {
2523
// And another forward declared TCKind, after it has been
2624
// declared
2725
enum class TCKind : uint32_t;
28-
};
26+
}
2927

30-
std::ostream& operator<<
31-
(std::ostream& strm,CORBA::TCKind _enumerator)
28+
std::ostream& operator<< (std::ostream& strm, CORBA::TCKind _enumerator)
3229
{
3330
switch (_enumerator) {
3431
case CORBA::TCKind::tk_null: return strm << "CORBA::TCKind::tk_null"; break;

ACE/tests/MM_Shared_Memory_Test.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525

2626
#if !defined (ACE_LACKS_MMAP)
2727

28-
static const char ACE_ALPHABET[] = "abcdefghijklmnopqrstuvwxyz";
29-
const int SHMSZ = 27;
30-
static ACE_TCHAR *shm_key;
31-
3228
#if defined (ACE_LACKS_FORK)
3329
#include "ace/Thread_Semaphore.h"
3430
typedef ACE_Thread_Semaphore SYNCHRONIZER;
@@ -65,6 +61,11 @@ const ACE_TCHAR *sem_name ()
6561
}
6662
#endif /* !defined (ACE_LACKS_FORK) */
6763

64+
#ifndef ACE_DISABLE_MKTEMP
65+
static const char ACE_ALPHABET[] = "abcdefghijklmnopqrstuvwxyz";
66+
const int SHMSZ = 27;
67+
static ACE_TCHAR *shm_key;
68+
6869
// Synchronize the start of the parent and the child.
6970
static SYNCHRONIZER *synchronizer = 0;
7071

@@ -194,6 +195,7 @@ spawn ()
194195
#endif /* ACE_HAS_THREADS */
195196
return 0;
196197
}
198+
#endif /* !ACE_DISABLE_MKTEMP */
197199
#endif /* !ACE_LACKS_MMAP */
198200

199201
int

ACE/tests/Multicast_Interfaces_Test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ get_valid_ipv4_interface_names (nameset &names)
105105
get_valid_ipv4_interface_names_win32 (names);
106106
#elif defined (ACE_HAS_GETIFADDRS)
107107
get_valid_ipv4_interface_names_getifaddrs (names);
108+
#else
109+
ACE_UNUSED_ARG (names);
108110
#endif /* ACE_WIN32 */
109111
}
110112

ACE/tests/OS_Test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ ace_ctype_test ()
12081208
++retval;
12091209
}
12101210

1211-
return 0;
1211+
return retval;
12121212
}
12131213

12141214
int

ACE/tests/Reactor_Remove_Resume_Test_Dev_Poll.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ dev_poll_reactor_factory ()
375375
*
376376
* Reactor test execution functor.
377377
*/
378-
struct Run_Test : public std::function<void(reactor_factory_type)>
378+
struct Run_Test
379379
{
380380
/// Function call operator overload.
381381
void operator() (reactor_factory_type factory)

ACE/tests/Recursive_Condition_Test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ run_main (int, ACE_TCHAR *[])
236236
{
237237
ACE_START_TEST (ACE_TEXT ("Recursive_Condition_Test"));
238238

239-
#if defined (ACE_HAS_THREADS)
240239
int status = 0;
240+
#if defined (ACE_HAS_THREADS)
241241

242242
/* Test 1 - Simple test */
243243
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Test 1...\n")));
@@ -293,6 +293,6 @@ run_main (int, ACE_TCHAR *[])
293293
ACE_TEXT ("ACE doesn't support recursive condition variables on this platform\n")));
294294
#endif /* ACE_HAS_THREADS */
295295
ACE_END_TEST;
296-
return 0;
296+
return status;
297297
}
298298

ACE/tests/SOCK_Send_Recv_Test_IPV6.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ static int Test_Result = 0;
3232

3333
#if !defined (ACE_LACKS_FORK) || defined (ACE_HAS_THREADS)
3434

35+
#if defined (ACE_HAS_IPV6)
36+
3537
// In test 3, a large amount of data is sent. The purpose is to overflow the
3638
// TCP send window, causing the sender to block (it's a send_n). This value
3739
// is the amount to send. The assumption is that no implementation has a
@@ -43,9 +45,6 @@ const size_t Test3_Send_Size = 4*1024;
4345
const size_t Test3_Loops = 10;
4446
const size_t Test3_Total_Size = Test3_Send_Size * Test3_Loops;
4547

46-
47-
#if defined (ACE_HAS_IPV6)
48-
4948
static void *
5049
client (void *arg)
5150
{

ACE/tests/STL_algorithm_Test_T.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class Element_Counter
1414
{
1515
}
1616

17+
Element_Counter (const Element_Counter &) = default;
18+
1719
void operator () (typename T::value_type & item)
1820
{
1921
++ this->count_;

ACE/tests/Sendfile_Test.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ static int Test_Result = 0;
2929

3030
#if !defined (ACE_LACKS_FORK) || defined (ACE_HAS_THREADS)
3131

32-
// This test sends a large amount of data. The purpose is to overflow the
33-
// TCP send window, causing the sender to block (it's a send_n). This value
34-
// is the amount to send. The assumption is that no implementation has a
35-
// receive window larger than 128K bytes. If one is found, this is the place
36-
// to change it.
37-
// For some odd reason, NT will try to send a single large buffer, but not
38-
// multiple smaller ones that add up to the large size.
39-
const size_t Test3_Send_Size = 4*1024;
40-
const size_t Test3_Loops = 10;
41-
4232
static void *
4333
client (void *arg)
4434
{

ACE/tests/Thread_Pool_Test.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ Thread_Pool::test_queue_deactivation_shutdown ()
205205
// Run the main loop that generates messages and enqueues them into
206206
// the pool of threads managed by <ACE_Task>.
207207

208-
for (size_t count = 0;
209-
;
210-
count++)
208+
while (true)
211209
{
212210
ssize_t n = 0;
213211

@@ -294,10 +292,7 @@ Thread_Pool::test_empty_message_shutdown ()
294292

295293
// Run the main loop that generates messages and enqueues them into
296294
// the pool of threads managed by <ACE_Task>.
297-
298-
for (size_t count = 0;
299-
;
300-
count++)
295+
while (true)
301296
{
302297
ssize_t n = 0;
303298

0 commit comments

Comments
 (0)