]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: testsuite: conditionalize another symlink test
authorAlexandre Oliva <oliva@adacore.com>
Mon, 27 Jun 2022 13:34:15 +0000 (10:34 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Mon, 27 Jun 2022 13:34:15 +0000 (10:34 -0300)
In the recent patch that introduced NO_SYMLINKS, I missed one of the
testcases that created symlinks.

for  libstdc++-v3/ChangeLog

* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc
(test06): Don't create symlinks when NO_SYMLINKS is defined.

libstdc++-v3/testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc

index e67e2cf38f7540240a0334985e1b2d4cb0a723a5..e2f3613a3d07eadb856c236342d1786c3d2aace3 100644 (file)
@@ -187,7 +187,7 @@ test05()
 void
 test06()
 {
-#if !(defined __MINGW32__ || defined __MINGW64__)
+#ifndef NO_SYMLINKS
   auto p = __gnu_test::nonexistent_path();
   create_directories(p/"d1/d2");
   create_directory_symlink("d1", p/"link");