summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-02-22 14:28:42 +0000
committerstanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-02-22 14:28:42 +0000
commit984e71eb930428430e58ff0887a1a8b9a431e773 (patch)
tree982cb22a1420752f07376888beb664777be6ba60
parent7446d81ff861d85676292217413cb6e00e604af7 (diff)
downloadATCD-984e71eb930428430e58ff0887a1a8b9a431e773.tar.gz
Fixed wchar issue. Fixed compilation issue for QNX.
-rw-r--r--TAO/ChangeLog12
-rw-r--r--TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.cpp4
-rw-r--r--TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.h3
-rw-r--r--TAO/tests/Bug_4059_Regression/client.cpp12
4 files changed, 22 insertions, 9 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 53d94dbfa8c..2aaff1f87b6 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,15 @@
+Fri Feb 22 14:25:37 UTC 2013 Kevin Stanley <stanleyk@ociweb.com>
+
+ * orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.h:
+ * orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.cpp:
+
+ Fixed wchar issue in tests.
+
+ * tests/Bug_4059_Regression/client.cpp:
+
+ Replaced global variable name = lock to avoid issue on QNX
+ of collision with lock() function defined in unistd.h.
+
Fri Feb 22 04:24:41 UTC 2013 Phillip LaBanca <labancap@ociweb.com>
* tests/DynAny_Test/da_tests.idl:
diff --git a/TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.cpp b/TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.cpp
index 840c23188d3..94c388cefcc 100644
--- a/TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.cpp
+++ b/TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.cpp
@@ -54,8 +54,8 @@ LB_server::naming_manager (void)
}
int
-LB_server::write_ior_to_file (const char* file_name,
- const char *ior)
+LB_server::write_ior_to_file (const ACE_TCHAR *file_name,
+ const ACE_TCHAR *ior)
{
FILE *output_file =
ACE_OS::fopen (file_name, "w");
diff --git a/TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.h b/TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.h
index 08e89284234..9b5a4234183 100644
--- a/TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.h
+++ b/TAO/orbsvcs/tests/FT_Naming/FaultTolerant/LB_server.h
@@ -93,7 +93,8 @@ private:
static int called_once_;
/// write the IOR to a file so that it can be read later.
- int write_ior_to_file (const char *filename, const char *ior);
+ int write_ior_to_file (const ACE_TCHAR *filename,
+ const ACE_TCHAR *ior);
CORBA::ORB_var orb_;
int argc_;
diff --git a/TAO/tests/Bug_4059_Regression/client.cpp b/TAO/tests/Bug_4059_Regression/client.cpp
index b8fbaa4a5aa..1d9cbe489c2 100644
--- a/TAO/tests/Bug_4059_Regression/client.cpp
+++ b/TAO/tests/Bug_4059_Regression/client.cpp
@@ -10,8 +10,8 @@
#include "ace/Thread.h"
#include "ace/Get_Opt.h"
-TAO_SYNCH_MUTEX lock;
-ACE_Condition<TAO_SYNCH_MUTEX> cond (lock);
+TAO_SYNCH_MUTEX test_lock;
+ACE_Condition<TAO_SYNCH_MUTEX> cond (test_lock);
bool is_ok = false;
CORBA::ORB_var orb;
@@ -45,10 +45,10 @@ parse_args (int argc, ACE_TCHAR *argv[])
ACE_THR_FUNC_RETURN failsafe (void *)
{
- lock.acquire();
+ test_lock.acquire();
ACE_Time_Value timeout = ACE_OS::gettimeofday() + ACE_Time_Value (10,0);
cond.wait(&timeout);
- lock.release();
+ test_lock.release();
if (!is_ok)
{
ACE_DEBUG ((LM_DEBUG, "FAILURE: failsafe timed out\n"));
@@ -105,9 +105,9 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
Test::Hello_var hello = Test::Hello::_narrow(object.in());
is_ok = true;
- lock.acquire ();
+ test_lock.acquire ();
cond.signal();
- lock.release ();
+ test_lock.release ();
ACE_DEBUG ((LM_DEBUG, "SUCCESS: test did not spin.\n"));
CORBA::String_var the_string = hello->get_string ();