summaryrefslogtreecommitdiff
path: root/ACE/tests/OS_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/OS_Test.cpp')
-rw-r--r--ACE/tests/OS_Test.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/ACE/tests/OS_Test.cpp b/ACE/tests/OS_Test.cpp
index ebe9b47eaae..a0485b34bc9 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
@@ -1697,6 +1710,9 @@ run_main (int, ACE_TCHAR *[])
if ((result = version_test ()) != 0)
status = result;
+ if ((result = gai_strerror_test ()) != 0)
+ status = result;
+
ACE_END_TEST;
return status;
}