diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-11-10 19:16:53 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-11-10 19:16:53 +0000 |
commit | 4085dd4354df50cc475a87de02ec127706c1a716 (patch) | |
tree | 8ef1392aa4072b099893c1cfcfa0efe5ee8282b8 /ACE/tests/Dirent_Test.cpp | |
parent | 172678a44045d952b4e0cabe23a622e7a60d9e14 (diff) | |
download | ATCD-4085dd4354df50cc475a87de02ec127706c1a716.tar.gz |
Mon Nov 10 19:16:00 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/tests/Dirent_Test.cpp')
-rw-r--r-- | ACE/tests/Dirent_Test.cpp | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/ACE/tests/Dirent_Test.cpp b/ACE/tests/Dirent_Test.cpp index f765393ed9a..048bbd55e12 100644 --- a/ACE/tests/Dirent_Test.cpp +++ b/ACE/tests/Dirent_Test.cpp @@ -143,10 +143,19 @@ dirent_selector_test (void) } for (n = 0; n < ds.length (); ++n) - ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("Entry %d: %C\n"), - n, - ds[n]->d_name)); + { +#if defined (ACE_HAS_TCHAR_DIRENT) + ACE_DEBUG ((LM_DEBUG, + ACE_TEXT ("Entry %d: %s\n"), + n, + ds[n]->d_name)); +#else + ACE_DEBUG ((LM_DEBUG, + ACE_TEXT ("Entry %d: %C\n"), + n, + ds[n]->d_name)); +#endif + } if (ds.close () == -1) { @@ -171,10 +180,20 @@ dirent_test (void) for (ACE_DIRENT *directory; (directory = dir.read ()) != 0; entrycount++) - ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("Entry %d: %C\n"), - entrycount, - directory->d_name)); + { +#if defined (ACE_HAS_TCHAR_DIRENT) + ACE_DEBUG ((LM_DEBUG, + ACE_TEXT ("Entry %d: %s\n"), + entrycount, + directory->d_name)); +#else + ACE_DEBUG ((LM_DEBUG, + ACE_TEXT ("Entry %d: %C\n"), + entrycount, + directory->d_name)); +#endif + } + switch (entrycount) { case 0: |