summaryrefslogtreecommitdiff
path: root/tests/OS_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/OS_Test.cpp')
-rw-r--r--tests/OS_Test.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/tests/OS_Test.cpp b/tests/OS_Test.cpp
index 7d74d5baf5d..cca9e59048a 100644
--- a/tests/OS_Test.cpp
+++ b/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;