diff options
author | Steve Huston <shuston@riverace.com> | 2000-12-19 19:48:51 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2000-12-19 19:48:51 +0000 |
commit | e9757784f3dd85578744d81fda25b72770a0d2d5 (patch) | |
tree | 828719191e9448e23f7ad7ca8cc3cf870bb2a3de /tests | |
parent | bdcc73b816ef00b039b3885ef673e61397c52921 (diff) | |
download | ATCD-e9757784f3dd85578744d81fda25b72770a0d2d5.tar.gz |
ChangeLogTag:Tue Dec 19 14:40:26 2000 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Capabilities_Test.cpp | 2 | ||||
-rw-r--r-- | tests/Mem_Map_Test.cpp | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/Capabilities_Test.cpp b/tests/Capabilities_Test.cpp index f123a2ba2bb..e0097f9824a 100644 --- a/tests/Capabilities_Test.cpp +++ b/tests/Capabilities_Test.cpp @@ -75,7 +75,7 @@ main (int, ACE_TCHAR *[]) " integer#2,\n" " string=000030,\n\n"; - ACE_HANDLE fd = ACE_OS::open (config, O_RDWR | O_CREAT | O_TRUNC, 0600); + ACE_HANDLE fd = ACE_OS::open (config, O_RDWR | O_CREAT | O_TRUNC); if (fd == ACE_INVALID_HANDLE) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("ACE_OS::open")), -1); diff --git a/tests/Mem_Map_Test.cpp b/tests/Mem_Map_Test.cpp index 79758df2aad..c679c8a91f0 100644 --- a/tests/Mem_Map_Test.cpp +++ b/tests/Mem_Map_Test.cpp @@ -67,7 +67,7 @@ create_test_file (ACE_TCHAR *filename, int line_length, int num_lines) ACE_HANDLE file_handle = ACE_OS::open (filename, O_RDWR | O_CREAT | O_TRUNC, - 0666); + ACE_DEFAULT_FILE_PERMS); if (file_handle == ACE_INVALID_HANDLE) { @@ -146,7 +146,7 @@ main (int, ACE_TCHAR *[]) // Now create a temporary file for intermediate processing ACE_HANDLE temp_file_handle = ACE_OS::open (temp_file1, O_RDWR | O_TRUNC | O_CREAT, - 0666); + ACE_DEFAULT_FILE_PERMS); if (temp_file_handle == ACE_INVALID_HANDLE) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("Open failed\n")), -1); @@ -167,7 +167,8 @@ main (int, ACE_TCHAR *[]) if ((temp_file_handle = ACE_OS::open (temp_file2, O_RDWR | O_TRUNC | O_CREAT, - 0666)) == ACE_INVALID_HANDLE) + ACE_DEFAULT_FILE_PERMS)) + == ACE_INVALID_HANDLE) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("Open failed\n")), -1); // Now reverse the temporary file and write everything to the second |