aboutsummaryrefslogtreecommitdiff
path: root/tests/dir-iterator/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dir-iterator/driver.cxx')
-rw-r--r--tests/dir-iterator/driver.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dir-iterator/driver.cxx b/tests/dir-iterator/driver.cxx
index 09a259f..cc1e7d6 100644
--- a/tests/dir-iterator/driver.cxx
+++ b/tests/dir-iterator/driver.cxx
@@ -37,10 +37,10 @@ main (int argc, const char* argv[])
{
for (const dir_entry& de: dir_iterator (dir_path (argv[1])))
{
- cerr << de.type () << " ";
+ cerr << de.ltype () << " ";
- if (de.type () == entry_type::symlink)
- cerr << de.ltype ();
+ if (de.ltype () == entry_type::symlink)
+ cerr << de.type ();
else
cerr << " ";