summaryrefslogtreecommitdiff
path: root/ACE/tests/OS_Test.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2016-05-17 12:23:09 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2016-05-17 12:23:09 +0200
commit83330bfd1fefd26347c2c1c2773953ad9f3c7f70 (patch)
tree174fcbd1a8e18d9aa6c07672efafbc6c2aeda4fe /ACE/tests/OS_Test.cpp
parente1629f4ad58b4de7f28c0fc085873208ab4dc127 (diff)
downloadATCD-83330bfd1fefd26347c2c1c2773953ad9f3c7f70.tar.gz
gai_strerror is defined as gai_strerrorA or gai_strerrorW on Windows dependent on Unicode settings. Adapt ACE_OS::gai_strerror for this and invoke this operation as part of a test to make sure we compile this inline code
* ACE/ace/OS_NS_netdb.inl: * ACE/ace/ace_wchar.h: * ACE/tests/OS_Test.cpp:
Diffstat (limited to 'ACE/tests/OS_Test.cpp')
-rw-r--r--ACE/tests/OS_Test.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/ACE/tests/OS_Test.cpp b/ACE/tests/OS_Test.cpp
index ebe9b47eaae..a77b58669ce 100644
--- a/ACE/tests/OS_Test.cpp
+++ b/ACE/tests/OS_Test.cpp
@@ -1607,11 +1607,24 @@ swab_test (void)
}
int
+gai_strerror_test (void)
+{
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("Testing gai_strerror method\n")));
+
+ const ACE_TCHAR* error_text = ACE_OS::gai_strerror (EAI_FAMILY);
+
+ ACE_UNUSED_ARG (error_text);
+
+ return 0;
+}
+
+int
run_main (int, ACE_TCHAR *[])
{
ACE_START_TEST (ACE_TEXT ("OS_Test"));
- // Enable a locale that has digit gropuing so that snprintf's %'d is
+ // Enable a locale that has digit grouping so that snprintf's %'d is
// different than %d. If the locale is not available the test won't
// fail (log file needs to be examined to check formatting).
#ifdef ACE_WIN32