diff options
author | spark <spark@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-29 06:05:16 +0000 |
---|---|---|
committer | spark <spark@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-29 06:05:16 +0000 |
commit | e199cdf7c6210a3634b9cb44b630f5e78cf56319 (patch) | |
tree | 9239c996b4018ba852e6d0a5e902dcbaee544ea1 /tests/test_config.h | |
parent | ecf188674c22518a1d1fdef04b62b3fed162824f (diff) | |
download | ATCD-e199cdf7c6210a3634b9cb44b630f5e78cf56319.tar.gz |
ChangeLogTag: Thu Mar 28 23:47:00 2002 Si Mong Park <spark@ociweb.com>
Diffstat (limited to 'tests/test_config.h')
-rw-r--r-- | tests/test_config.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_config.h b/tests/test_config.h index 25604e36ad7..8e7143c060c 100644 --- a/tests/test_config.h +++ b/tests/test_config.h @@ -47,7 +47,10 @@ #define ACE_TEXT ACE_LIB_TEXT #if defined (ACE_HAS_WINCE) -# define ACE_LOG_DIRECTORY ACE_TEXT ("log\\") +// Note that Pocket PC 2002 will NOT create a directory if it does not start with a leading '\'. +// PPC 2002 only accepts '\log' as a valid directory name, while 'log\' works under WinCE 3.0. +# define ACE_LOG_DIRECTORY_FOR_MKDIR ACE_TEXT ("\\log") +# define ACE_LOG_DIRECTORY ACE_TEXT ("\\log\\") # define MAKE_PIPE_NAME(X) ACE_TEXT ("\\\\.\\pipe\\"#X) #elif defined (ACE_WIN32) # define ACE_LOG_DIRECTORY ACE_TEXT ("log\\") @@ -241,7 +244,11 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append) // directory does exist, it causes a wierd console error message // about "cat: input error on standard input: Is a directory". So, // VxWorks users must create the directory manually. - ACE_OS::mkdir (ACE_LOG_DIRECTORY); +# if defined (ACE_HAS_WINCE) + ACE_OS::mkdir (ACE_LOG_DIRECTORY_FOR_MKDIR); +# else + ACE_OS::mkdir (ACE_LOG_DIRECTORY); +# endif // ACE_HAS_WINCE # endif /* ! VXWORKS */ # if !defined (ACE_LACKS_IOSTREAM_TOTALLY) |