summaryrefslogtreecommitdiff
path: root/tests/CDR_File_Test.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-24 05:12:06 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-24 05:12:06 +0000
commit0756bceb855477f313f1eaca5d01f9e36bb3e36d (patch)
tree4a0e8ef5428d6e4478da2a46b566c84df67ef376 /tests/CDR_File_Test.cpp
parentad7f2d4ae4273710073d841fe5afccaf14e6718a (diff)
downloadATCD-fix_bug132_iter04_fin.tar.gz
This commit was manufactured by cvs2svn to create tagfix_bug132_iter04_fin
'fix_bug132_iter04_fin'.
Diffstat (limited to 'tests/CDR_File_Test.cpp')
-rw-r--r--tests/CDR_File_Test.cpp28
1 files changed, 4 insertions, 24 deletions
diff --git a/tests/CDR_File_Test.cpp b/tests/CDR_File_Test.cpp
index 49ae77be57a..010ae8683c6 100644
--- a/tests/CDR_File_Test.cpp
+++ b/tests/CDR_File_Test.cpp
@@ -341,7 +341,6 @@ main (int argc, ACE_TCHAR *argv[])
filename.set (fn);
}
-
ACE_FILE_Connector connector;
ACE_FILE_IO file;
@@ -353,17 +352,11 @@ main (int argc, ACE_TCHAR *argv[])
0,
((writing) ? (O_RDWR | O_CREAT) : O_RDONLY),
ACE_DEFAULT_FILE_PERMS) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("connect failed for %p\n"),
- filename.get_path_name ()),
- 1);
-
-#if !defined (ACE_WIN32) \
- || (defined (ACE_HAS_WINNT4) && ACE_HAS_WINNT4 == 1)
-# define TEST_CAN_UNLINK_IN_ADVANCE
-#endif
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("connect failed for %p\n"),
+ filename.get_path_name ()),
+ 1);
-#if defined(TEST_CAN_UNLINK_IN_ADVANCE)
if (fn == 0)
{
// Unlink this file right away so that it is automatically removed
@@ -374,7 +367,6 @@ main (int argc, ACE_TCHAR *argv[])
filename.get_path_name ()),
1);
}
-#endif
CDR_Test cdr_test ('a',
0x00ff,
@@ -401,18 +393,6 @@ main (int argc, ACE_TCHAR *argv[])
cdr_test);
}
-#if !defined (TEST_CAN_UNLINK_IN_ADVANCE)
- if (fn == 0)
- {
- file.close ();
- if (file.unlink () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("unlink failed for %p\n"),
- filename.get_path_name ()),
- 1);
- }
-#endif
-
ACE_END_TEST;
return 0;
}