summaryrefslogtreecommitdiff
path: root/ACE/tests/OS_Test.cpp
diff options
context:
space:
mode:
authorolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-11-04 14:53:15 +0000
committerolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-11-04 14:53:15 +0000
commit21629448cb3bae448c7f4a340d8845630adb36ee (patch)
tree0684efcb7c61a3172f177efdf7980351ddec291f /ACE/tests/OS_Test.cpp
parente33ade4cff862b4d05630556f53b56cc9c9afa0d (diff)
downloadATCD-21629448cb3bae448c7f4a340d8845630adb36ee.tar.gz
ChangeLogTag: Wed Nov 4 14:51:00 UTC 2009 Olli Savia <ops@iki.fi>
Diffstat (limited to 'ACE/tests/OS_Test.cpp')
-rw-r--r--ACE/tests/OS_Test.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/ACE/tests/OS_Test.cpp b/ACE/tests/OS_Test.cpp
index 7d74d5baf5d..cca9e59048a 100644
--- a/ACE/tests/OS_Test.cpp
+++ b/ACE/tests/OS_Test.cpp
@@ -67,76 +67,6 @@ access_test (void)
return test_status;
}
-// Test ACE_OS::fileno()
-int
-fileno_test (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Testing fileno method\n")));
-
- int test_status = 0;
-
- ACE_HANDLE fn;
-
- fn = ACE_OS::fileno (stdin);
- if (fn == ACE_INVALID_HANDLE)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("fileno(stdin) returned ACE_INVALID_HANDLE.\n")));
- test_status = -1;
- }
- else if (fn != ACE_STDIN)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("stdin test failed.\n")));
- test_status = -1;
- }
-
- fn = ACE_OS::fileno (stdout);
- if (fn == ACE_INVALID_HANDLE)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("fileno(stdout) returned ACE_INVALID_HANDLE.\n")));
- test_status = -1;
- }
- else
-#if defined (ACE_WIN32)
- // Check if stdout is not associated with an output stream.
- // This is not an error.
- if (fn == reinterpret_cast<ACE_HANDLE>(-2))
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("fileno(stdout) returned -2.\n")));
- }
- else
-#endif
- if (fn != ACE_STDOUT)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("stdout test failed.\n")));
- test_status = -1;
- }
-
- fn = ACE_OS::fileno (stderr);
- if (fn == ACE_INVALID_HANDLE)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("fileno(stderr) returned ACE_INVALID_HANDLE.\n")));
- test_status = -1;
- }
- else
-#if defined (ACE_WIN32)
- // Check if stderr is not associated with an output stream.
- // This is not an error.
- if (fn == reinterpret_cast<ACE_HANDLE>(-2))
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("fileno(stderr) returned -2.\n")));
- }
- else
-#endif
- if (fn != ACE_STDERR)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("stderr test failed.\n")));
- test_status = -1;
- }
-
- return test_status;
-}
-
// Test ACE_OS::rename to be sure the files come and go as expected.
int
rename_test (void)
@@ -1290,9 +1220,6 @@ run_main (int, ACE_TCHAR *[])
if ((result = access_test ()) != 0)
status = result;
- if ((result = fileno_test ()) != 0)
- status = result;
-
if ((result = rename_test ()) != 0)
status = result;