diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2013-02-25 08:09:41 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2013-02-25 08:09:41 +0000 |
commit | 222e0b2db136b104ad93564e126a36a1f5abe7eb (patch) | |
tree | ff2812ddbc00af78a38ef9997de8282e857a8355 /ACE/tests/OS_Test.cpp | |
parent | a0e11eba45d520981193a745790280a8c3fdea9a (diff) | |
download | ATCD-222e0b2db136b104ad93564e126a36a1f5abe7eb.tar.gz |
Mon Feb 25 08:09:24 UTC 2013 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/Sock_Connect.cpp:
Don't use MAX_IF as constant, is a system defined constant on
some operating systems
* tests/OS_Test.cpp:
Call compiler version methods, should fix some Coverity test
coverage issues
Diffstat (limited to 'ACE/tests/OS_Test.cpp')
-rw-r--r-- | ACE/tests/OS_Test.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ACE/tests/OS_Test.cpp b/ACE/tests/OS_Test.cpp index 1e664fac7ff..f89fba70922 100644 --- a/ACE/tests/OS_Test.cpp +++ b/ACE/tests/OS_Test.cpp @@ -683,6 +683,20 @@ getpwnam_r_test (void) } static int +compiler_test (void) +{ + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Testing compiler methods\n"))); + + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Using compiler %s with major version %d minor version %d beta version %d\n"), + ACE::compiler_name(), + ACE::compiler_major_version(), + ACE::compiler_minor_version (), + ACE::compiler_beta_version ())); + + return 0; +} + +static int ctime_r_test (void) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Testing ctime_r\n"))); @@ -1426,6 +1440,9 @@ run_main (int, ACE_TCHAR *[]) if ((result = ace_ctype_test ()) != 0) status = result; + if ((result = compiler_test ()) != 0) + status = result; + ACE_END_TEST; return status; } |