diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-11-06 13:08:46 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-11-06 13:08:46 +0000 |
commit | f400bef3b51fe4e78c14c7cf5fdbc2f04df18c79 (patch) | |
tree | 0341741e22c06d48d9cd61f8ed3562c947f5c888 /ACE/tests/Bug_3432_Regression_Test.cpp | |
parent | 630d96ceed21823e6ee1b95b8e2e23c2520737d0 (diff) | |
download | ATCD-f400bef3b51fe4e78c14c7cf5fdbc2f04df18c79.tar.gz |
Thu Nov 6 13:08:00 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/tests/Bug_3432_Regression_Test.cpp')
-rw-r--r-- | ACE/tests/Bug_3432_Regression_Test.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ACE/tests/Bug_3432_Regression_Test.cpp b/ACE/tests/Bug_3432_Regression_Test.cpp index 822f2101b48..ecfb7189551 100644 --- a/ACE/tests/Bug_3432_Regression_Test.cpp +++ b/ACE/tests/Bug_3432_Regression_Test.cpp @@ -39,11 +39,13 @@ strptime_test (void) time_t time = lValue.sec(); struct tm tm_time; ACE_OS::gmtime_r (&time, &tm_time); - ACE_OS::strftime(lBuffer, 128, "%Y-%m-%d %H:%M", &tm_time); - - if (ACE_OS::strcmp (lBuffer, original_time) != 0) + if (ACE_OS::strftime(lBuffer, 128, "%Y-%m-%d %H:%M", &tm_time) == 0 && errno == ENOTSUP) + { + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("strftime is not supported on this platform\n"))); + } + else if (ACE_OS::strcmp (lBuffer, original_time) != 0) { - ACE_ERROR ((LM_ERROR, ACE_TEXT ("%C != %C\n"),lBuffer, original_time)); + ACE_ERROR ((LM_ERROR, ACE_TEXT ("%C != %C\n"), lBuffer, original_time)); ++error_count; } else |