Ver código fonte

Make filesystem tests generic between experimental and std versions.

As I move towards implementing std::filesystem, there is a need to
make the existing tests run against both the std and experimental versions.
Additionally, it's helpful to allow running the tests against other
implementations of filesystem.

This patch converts the test to easily target either. First, it
adds a filesystem_include.hpp header which is soley responsible
for selecting and including the correct implementation. Second,
it converts existing tests to use this header instead of including
filesystem directly.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@328475 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Fiselier 7 anos atrás
pai
commit
f1471a367b
100 arquivos alterados com 160 adições e 220 exclusões
  1. 1 2
      test/std/experimental/filesystem/class.directory_entry/directory_entry.cons.pass.cpp
  2. 1 2
      test/std/experimental/filesystem/class.directory_entry/directory_entry.mods.pass.cpp
  3. 1 2
      test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/comparisons.pass.cpp
  4. 1 2
      test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/path.pass.cpp
  5. 1 1
      test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/status.pass.cpp
  6. 1 1
      test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/symlink_status.pass.cpp
  7. 2 2
      test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/copy.pass.cpp
  8. 2 2
      test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/copy_assign.pass.cpp
  9. 4 4
      test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/ctor.pass.cpp
  10. 1 2
      test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp
  11. 2 2
      test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/increment.pass.cpp
  12. 2 2
      test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/move.pass.cpp
  13. 2 2
      test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/move_assign.pass.cpp
  14. 2 2
      test/std/experimental/filesystem/class.directory_iterator/directory_iterator.nonmembers/begin_end.pass.cpp
  15. 1 2
      test/std/experimental/filesystem/class.directory_iterator/types.pass.cpp
  16. 1 2
      test/std/experimental/filesystem/class.file_status/file_status.cons.pass.cpp
  17. 1 2
      test/std/experimental/filesystem/class.file_status/file_status.mods.pass.cpp
  18. 1 2
      test/std/experimental/filesystem/class.file_status/file_status.obs.pass.cpp
  19. 1 2
      test/std/experimental/filesystem/class.filesystem_error/filesystem_error.members.pass.cpp
  20. 1 2
      test/std/experimental/filesystem/class.path/path.itr/iterator.pass.cpp
  21. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.append.pass.cpp
  22. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.assign/braced_init.pass.cpp
  23. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.assign/copy.pass.cpp
  24. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.assign/move.pass.cpp
  25. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.assign/source.pass.cpp
  26. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.compare.pass.cpp
  27. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.concat.pass.cpp
  28. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.construct/copy.pass.cpp
  29. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.construct/default.pass.cpp
  30. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.construct/move.pass.cpp
  31. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.construct/source.pass.cpp
  32. 2 3
      test/std/experimental/filesystem/class.path/path.member/path.decompose/empty.fail.cpp
  33. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp
  34. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp
  35. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.generic.obs/named_overloads.pass.cpp
  36. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.modifiers/clear.pass.cpp
  37. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.modifiers/make_preferred.pass.cpp
  38. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.modifiers/remove_filename.pass.cpp
  39. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.modifiers/replace_extension.pass.cpp
  40. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.modifiers/replace_filename.pass.cpp
  41. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.modifiers/swap.pass.cpp
  42. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.native.obs/c_str.pass.cpp
  43. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.native.obs/named_overloads.pass.cpp
  44. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.native.obs/native.pass.cpp
  45. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.native.obs/operator_string.pass.cpp
  46. 1 2
      test/std/experimental/filesystem/class.path/path.member/path.native.obs/string_alloc.pass.cpp
  47. 1 2
      test/std/experimental/filesystem/class.path/path.nonmember/append_op.pass.cpp
  48. 1 2
      test/std/experimental/filesystem/class.path/path.nonmember/path.factory.pass.cpp
  49. 1 1
      test/std/experimental/filesystem/class.path/path.nonmember/path.io.pass.cpp
  50. 1 1
      test/std/experimental/filesystem/class.path/path.nonmember/path.io.unicode_bug.pass.cpp
  51. 1 2
      test/std/experimental/filesystem/class.path/path.nonmember/swap.pass.cpp
  52. 1 2
      test/std/experimental/filesystem/class.path/synop.pass.cpp
  53. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/copy.pass.cpp
  54. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/copy_assign.pass.cpp
  55. 4 4
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/ctor.pass.cpp
  56. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/depth.pass.cpp
  57. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/disable_recursion_pending.pass.cpp
  58. 6 6
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp
  59. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/move.pass.cpp
  60. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/move_assign.pass.cpp
  61. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/pop.pass.cpp
  62. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/recursion_pending.pass.cpp
  63. 2 2
      test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.nonmembers/begin_end.pass.cpp
  64. 1 2
      test/std/experimental/filesystem/fs.enum/enum.copy_options.pass.cpp
  65. 1 2
      test/std/experimental/filesystem/fs.enum/enum.directory_options.pass.cpp
  66. 1 2
      test/std/experimental/filesystem/fs.enum/enum.file_type.pass.cpp
  67. 1 2
      test/std/experimental/filesystem/fs.enum/enum.perms.pass.cpp
  68. 2 2
      test/std/experimental/filesystem/fs.filesystem.synopsis/file_time_type.pass.cpp
  69. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.absolute/absolute.pass.cpp
  70. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.canonical/canonical.pass.cpp
  71. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.copy/copy.pass.cpp
  72. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.copy_file/copy_file.pass.cpp
  73. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.copy_symlink/copy_symlink.pass.cpp
  74. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directories/create_directories.pass.cpp
  75. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory.pass.cpp
  76. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
  77. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory_symlink/create_directory_symlink.pass.cpp
  78. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.create_hard_link/create_hard_link.pass.cpp
  79. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.create_symlink/create_symlink.pass.cpp
  80. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.current_path/current_path.pass.cpp
  81. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/equivalent.pass.cpp
  82. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.exists/exists.pass.cpp
  83. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.file_size/file_size.pass.cpp
  84. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp
  85. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_block_file/is_block_file.pass.cpp
  86. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_char_file/is_character_file.pass.cpp
  87. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_directory/is_directory.pass.cpp
  88. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_empty/is_empty.pass.cpp
  89. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_fifo/is_fifo.pass.cpp
  90. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_other/is_other.pass.cpp
  91. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_regular_file/is_regular_file.pass.cpp
  92. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_socket/is_socket.pass.cpp
  93. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.is_symlink/is_symlink.pass.cpp
  94. 2 2
      test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
  95. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
  96. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.read_symlink/read_symlink.pass.cpp
  97. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.remove/remove.pass.cpp
  98. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.remove_all/remove_all.pass.cpp
  99. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.rename/rename.pass.cpp
  100. 2 3
      test/std/experimental/filesystem/fs.op.funcs/fs.op.resize_file/resize_file.pass.cpp

+ 1 - 2
test/std/experimental/filesystem/class.directory_entry/directory_entry.cons.pass.cpp

@@ -18,11 +18,10 @@
 //          directory_entry(directory_entry&&) noexcept = default;
 //          directory_entry(directory_entry&&) noexcept = default;
 // explicit directory_entry(const path);
 // explicit directory_entry(const path);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
-namespace fs = std::experimental::filesystem;
 
 
 void test_default_ctor()
 void test_default_ctor()
 {
 {

+ 1 - 2
test/std/experimental/filesystem/class.directory_entry/directory_entry.mods.pass.cpp

@@ -18,11 +18,10 @@
 // void assign(path const&);
 // void assign(path const&);
 // void replace_filename(path const&);
 // void replace_filename(path const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
-namespace fs = std::experimental::filesystem;
 
 
 void test_copy_assign_operator()
 void test_copy_assign_operator()
 {
 {

+ 1 - 2
test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/comparisons.pass.cpp

@@ -21,11 +21,10 @@
 // bool operator>=(directory_entry const&) const noexcept;
 // bool operator>=(directory_entry const&) const noexcept;
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
-namespace fs = std::experimental::filesystem;
 
 
 #define CHECK_OP(Op) \
 #define CHECK_OP(Op) \
   static_assert(std::is_same<decltype(ce. operator Op (ce)), bool>::value, ""); \
   static_assert(std::is_same<decltype(ce. operator Op (ce)), bool>::value, ""); \

+ 1 - 2
test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/path.pass.cpp

@@ -16,11 +16,10 @@
 // const path& path() const noexcept;
 // const path& path() const noexcept;
 // operator const path&() const noexcept;
 // operator const path&() const noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
-namespace fs = std::experimental::filesystem;
 
 
 void test_path_method() {
 void test_path_method() {
   using namespace fs;
   using namespace fs;

+ 1 - 1
test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/status.pass.cpp

@@ -16,7 +16,7 @@
 // file_status status() const;
 // file_status status() const;
 // file_status status(error_code const&) const noexcept;
 // file_status status(error_code const&) const noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 

+ 1 - 1
test/std/experimental/filesystem/class.directory_entry/directory_entry.obs/symlink_status.pass.cpp

@@ -16,7 +16,7 @@
 // file_status symlink_status() const;
 // file_status symlink_status() const;
 // file_status symlink_status(error_code&) const noexcept;
 // file_status symlink_status(error_code&) const noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 

+ 2 - 2
test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/copy.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // directory_iterator(directory_iterator const&);
 // directory_iterator(directory_iterator const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(directory_iterator_copy_construct_tests)
 TEST_SUITE(directory_iterator_copy_construct_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/copy_assign.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // directory_iterator& operator=(directory_iterator const&);
 // directory_iterator& operator=(directory_iterator const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(directory_iterator_copy_assign_tests)
 TEST_SUITE(directory_iterator_copy_assign_tests)
 
 

+ 4 - 4
test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/ctor.pass.cpp

@@ -18,7 +18,7 @@
 // directory_iterator(const path& p, error_code& ec);
 // directory_iterator(const path& p, error_code& ec);
 // directory_iterator(const path& p, directory_options options, error_code& ec);
 // directory_iterator(const path& p, directory_options options, error_code& ec);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -27,7 +27,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(directory_iterator_constructor_tests)
 TEST_SUITE(directory_iterator_constructor_tests)
 
 
@@ -86,7 +86,7 @@ TEST_CASE(test_construction_from_bad_path)
 
 
 TEST_CASE(access_denied_test_case)
 TEST_CASE(access_denied_test_case)
 {
 {
-    using namespace std::experimental::filesystem;
+    using namespace fs;
     scoped_test_env env;
     scoped_test_env env;
     path const testDir = env.make_env_path("dir1");
     path const testDir = env.make_env_path("dir1");
     path const testFile = testDir / "testFile";
     path const testFile = testDir / "testFile";
@@ -122,7 +122,7 @@ TEST_CASE(access_denied_test_case)
 
 
 TEST_CASE(access_denied_to_file_test_case)
 TEST_CASE(access_denied_to_file_test_case)
 {
 {
-    using namespace std::experimental::filesystem;
+    using namespace fs;
     scoped_test_env env;
     scoped_test_env env;
     path const testFile = env.make_env_path("file1");
     path const testFile = env.make_env_path("file1");
     env.create_file(testFile, 42);
     env.create_file(testFile, 42);

+ 1 - 2
test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp

@@ -16,13 +16,12 @@
 // directory_iterator::directory_iterator() noexcept
 // directory_iterator::directory_iterator() noexcept
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
     {
     {

+ 2 - 2
test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/increment.pass.cpp

@@ -16,7 +16,7 @@
 // directory_iterator& operator++();
 // directory_iterator& operator++();
 // directory_iterator& increment(error_code& ec);
 // directory_iterator& increment(error_code& ec);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -26,7 +26,7 @@
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 #include <iostream>
 #include <iostream>
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(directory_iterator_increment_tests)
 TEST_SUITE(directory_iterator_increment_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/move.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // directory_iterator(directory_iterator&&) noexcept;
 // directory_iterator(directory_iterator&&) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(directory_iterator_move_construct_tests)
 TEST_SUITE(directory_iterator_move_construct_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/move_assign.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // directory_iterator& operator=(directory_iterator const&);
 // directory_iterator& operator=(directory_iterator const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -30,7 +30,7 @@
 #pragma clang diagnostic ignored "-Wself-move"
 #pragma clang diagnostic ignored "-Wself-move"
 #endif
 #endif
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(directory_iterator_move_assign_tests)
 TEST_SUITE(directory_iterator_move_assign_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.directory_iterator/directory_iterator.nonmembers/begin_end.pass.cpp

@@ -16,7 +16,7 @@
 // directory_iterator begin(directory_iterator iter) noexcept;
 // directory_iterator begin(directory_iterator iter) noexcept;
 // directory_iterator end(directory_iterator iter) noexcept;
 // directory_iterator end(directory_iterator iter) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -26,7 +26,7 @@
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 #include <iostream>
 #include <iostream>
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(directory_iterator_begin_end_tests)
 TEST_SUITE(directory_iterator_begin_end_tests)
 
 

+ 1 - 2
test/std/experimental/filesystem/class.directory_iterator/types.pass.cpp

@@ -19,13 +19,12 @@
 // typedef ... reference;
 // typedef ... reference;
 // typedef ... iterator_category
 // typedef ... iterator_category
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
     using namespace fs;
     using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.file_status/file_status.cons.pass.cpp

@@ -16,13 +16,12 @@
 // explicit file_status() noexcept;
 // explicit file_status() noexcept;
 // explicit file_status(file_type, perms prms = perms::unknown) noexcept;
 // explicit file_status(file_type, perms prms = perms::unknown) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_convertible.hpp"
 #include "test_convertible.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
  using namespace fs;
  using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.file_status/file_status.mods.pass.cpp

@@ -16,11 +16,10 @@
 // void type(file_type) noexcept;
 // void type(file_type) noexcept;
 // void permissions(perms) noexcept;
 // void permissions(perms) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.file_status/file_status.obs.pass.cpp

@@ -16,11 +16,10 @@
 // file_type type() const noexcept;
 // file_type type() const noexcept;
 // perms permissions(p) const noexcept;
 // perms permissions(p) const noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.filesystem_error/filesystem_error.members.pass.cpp

@@ -21,13 +21,12 @@
 // const path& path1() const noexcept;
 // const path& path1() const noexcept;
 // const path& path2() const noexcept;
 // const path& path2() const noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 void test_constructors() {
 void test_constructors() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.itr/iterator.pass.cpp

@@ -19,7 +19,7 @@
 //      path(InputIterator first, InputIterator last);
 //      path(InputIterator first, InputIterator last);
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <iterator>
 #include <iterator>
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
@@ -27,7 +27,6 @@
 #include "test_macros.h"
 #include "test_macros.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 
 
 template <class It>
 template <class It>

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.append.pass.cpp

@@ -22,7 +22,7 @@
 //      path& append(InputIterator first, InputIterator last);
 //      path& append(InputIterator first, InputIterator last);
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <string_view>
 #include <string_view>
 #include <cassert>
 #include <cassert>
@@ -32,7 +32,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 struct AppendOperatorTestcase {
 struct AppendOperatorTestcase {
   MultiStringType lhs;
   MultiStringType lhs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.assign/braced_init.pass.cpp

@@ -15,14 +15,13 @@
 
 
 // path& operator=(path const&);
 // path& operator=(path const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "count_new.hpp"
 #include "count_new.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.assign/copy.pass.cpp

@@ -15,13 +15,12 @@
 
 
 // path& operator=(path const&);
 // path& operator=(path const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.assign/move.pass.cpp

@@ -15,14 +15,13 @@
 
 
 // path& operator=(path&&) noexcept
 // path& operator=(path&&) noexcept
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "count_new.hpp"
 #include "count_new.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.assign/source.pass.cpp

@@ -22,7 +22,7 @@
 //      path& assign(InputIterator first, InputIterator last);
 //      path& assign(InputIterator first, InputIterator last);
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <string_view>
 #include <string_view>
 #include <cassert>
 #include <cassert>
@@ -33,7 +33,6 @@
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 #include <iostream>
 #include <iostream>
 
 
-namespace fs = std::experimental::filesystem;
 
 
 template <class CharT>
 template <class CharT>
 void RunTestCase(MultiStringType const& MS) {
 void RunTestCase(MultiStringType const& MS) {

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.compare.pass.cpp

@@ -26,7 +26,7 @@
 //
 //
 // size_t hash_value(path const&) noexcept;
 // size_t hash_value(path const&) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <vector>
 #include <vector>
 #include <cassert>
 #include <cassert>
@@ -36,7 +36,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 struct PathCompareTest {
 struct PathCompareTest {
   const char* LHS;
   const char* LHS;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.concat.pass.cpp

@@ -28,7 +28,7 @@
 //   path& concat(InputIterator first, InputIterator last);
 //   path& concat(InputIterator first, InputIterator last);
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <string>
 #include <string>
 #include <string_view>
 #include <string_view>
@@ -39,7 +39,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 struct ConcatOperatorTestcase {
 struct ConcatOperatorTestcase {
   MultiStringType lhs;
   MultiStringType lhs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.construct/copy.pass.cpp

@@ -15,13 +15,12 @@
 
 
 // path(path const&)
 // path(path const&)
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.construct/default.pass.cpp

@@ -15,13 +15,12 @@
 
 
 // path() noexcept
 // path() noexcept
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.construct/move.pass.cpp

@@ -15,14 +15,13 @@
 
 
 // path(path&&) noexcept
 // path(path&&) noexcept
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "count_new.hpp"
 #include "count_new.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.construct/source.pass.cpp

@@ -19,7 +19,7 @@
 //      path(InputIterator first, InputIterator last);
 //      path(InputIterator first, InputIterator last);
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -28,7 +28,6 @@
 #include "min_allocator.h"
 #include "min_allocator.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 template <class CharT>
 template <class CharT>
 void RunTestCase(MultiStringType const& MS) {
 void RunTestCase(MultiStringType const& MS) {

+ 2 - 3
test/std/experimental/filesystem/class.path/path.member/path.decompose/empty.fail.cpp

@@ -17,12 +17,11 @@
 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
 // UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7, clang-3.8
 // UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7, clang-3.8
 
 
-#include <experimental/filesystem>
-
+#include "filesystem_include.hpp"
 #include "test_macros.h"
 #include "test_macros.h"
 
 
 int main ()
 int main ()
 {
 {
-    std::experimental::filesystem::path c;
+    fs::path c;
     c.empty();  // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}}
     c.empty();  // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}}
 }
 }

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp

@@ -44,7 +44,7 @@
 // iterator end() const;
 // iterator end() const;
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <vector>
 #include <vector>
 #include <cassert>
 #include <cassert>
@@ -54,7 +54,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 struct PathDecomposeTestcase
 struct PathDecomposeTestcase
 {
 {
     std::string raw;
     std::string raw;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp

@@ -18,7 +18,7 @@
 // basic_string<ECharT, Traits, Allocator>
 // basic_string<ECharT, Traits, Allocator>
 // generic_string(const Allocator& a = Allocator()) const;
 // generic_string(const Allocator& a = Allocator()) const;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -28,7 +28,6 @@
 #include "min_allocator.h"
 #include "min_allocator.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/123456789/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
 MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/123456789/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
 
 

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.generic.obs/named_overloads.pass.cpp

@@ -20,7 +20,7 @@
 // std::u32string generic_u32string() const;
 // std::u32string generic_u32string() const;
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -30,7 +30,6 @@
 #include "min_allocator.h"
 #include "min_allocator.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/123456789/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
 MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/123456789/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
 
 

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.modifiers/clear.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // void clear() noexcept
 // void clear() noexcept
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -24,7 +24,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.modifiers/make_preferred.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // path& make_preferred()
 // path& make_preferred()
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -24,7 +24,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 struct MakePreferredTestcase {
 struct MakePreferredTestcase {
   const char* value;
   const char* value;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.modifiers/remove_filename.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // path& remove_filename()
 // path& remove_filename()
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -24,7 +24,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 struct RemoveFilenameTestcase {
 struct RemoveFilenameTestcase {
   const char* value;
   const char* value;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.modifiers/replace_extension.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // path& replace_extension(path const& p = path())
 // path& replace_extension(path const& p = path())
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -24,7 +24,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 struct ReplaceExtensionTestcase {
 struct ReplaceExtensionTestcase {
   const char* value;
   const char* value;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.modifiers/replace_filename.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // path& replace_filename()
 // path& replace_filename()
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -24,7 +24,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 struct ReplaceFilenameTestcase {
 struct ReplaceFilenameTestcase {
   const char* value;
   const char* value;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.modifiers/swap.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // void swap(path& rhs) noexcept;
 // void swap(path& rhs) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -24,7 +24,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 struct SwapTestcase {
 struct SwapTestcase {
   const char* value1;
   const char* value1;

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.native.obs/c_str.pass.cpp

@@ -16,14 +16,13 @@
 
 
 // const value_type* c_str() const noexcept;
 // const value_type* c_str() const noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main()
 int main()
 {
 {

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.native.obs/named_overloads.pass.cpp

@@ -20,7 +20,7 @@
 // std::u32string u32string() const;
 // std::u32string u32string() const;
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -30,7 +30,6 @@
 #include "min_allocator.h"
 #include "min_allocator.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/123456789/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
 MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/123456789/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
 
 

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.native.obs/native.pass.cpp

@@ -15,14 +15,13 @@
 
 
 // const string_type& native() const noexcept;
 // const string_type& native() const noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main()
 int main()
 {
 {

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.native.obs/operator_string.pass.cpp

@@ -16,14 +16,13 @@
 
 
 // operator string_type() const;
 // operator string_type() const;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main()
 int main()
 {
 {

+ 1 - 2
test/std/experimental/filesystem/class.path/path.member/path.native.obs/string_alloc.pass.cpp

@@ -18,7 +18,7 @@
 // basic_string<ECharT, Traits, Allocator>
 // basic_string<ECharT, Traits, Allocator>
 // string(const Allocator& a = Allocator()) const;
 // string(const Allocator& a = Allocator()) const;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -28,7 +28,6 @@
 #include "min_allocator.h"
 #include "min_allocator.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 // the SSO is always triggered for strings of size 2.
 // the SSO is always triggered for strings of size 2.
 MultiStringType shortString = MKSTR("a");
 MultiStringType shortString = MKSTR("a");

+ 1 - 2
test/std/experimental/filesystem/class.path/path.nonmember/append_op.pass.cpp

@@ -13,14 +13,13 @@
 
 
 // path operator/(path const&, path const&);
 // path operator/(path const&, path const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 // This is mainly tested via the member append functions.
 // This is mainly tested via the member append functions.
 int main()
 int main()

+ 1 - 2
test/std/experimental/filesystem/class.path/path.nonmember/path.factory.pass.cpp

@@ -16,7 +16,7 @@
 // template <class InputIter>
 // template <class InputIter>
 //   path u8path(InputIter, InputIter);
 //   path u8path(InputIter, InputIter);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -25,7 +25,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main()
 int main()
 {
 {

+ 1 - 1
test/std/experimental/filesystem/class.path/path.nonmember/path.io.pass.cpp

@@ -22,7 +22,7 @@
 // operator>>(basic_istream<charT, traits>& is, path& p)
 // operator>>(basic_istream<charT, traits>& is, path& p)
 //
 //
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <sstream>
 #include <sstream>
 #include <cassert>
 #include <cassert>

+ 1 - 1
test/std/experimental/filesystem/class.path/path.nonmember/path.io.unicode_bug.pass.cpp

@@ -27,7 +27,7 @@
 // passes.
 // passes.
 // XFAIL: *
 // XFAIL: *
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <sstream>
 #include <sstream>
 #include <cassert>
 #include <cassert>

+ 1 - 2
test/std/experimental/filesystem/class.path/path.nonmember/swap.pass.cpp

@@ -13,7 +13,7 @@
 
 
 // void swap(path& lhs, path& rhs) noexcept;
 // void swap(path& lhs, path& rhs) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -21,7 +21,6 @@
 #include "count_new.hpp"
 #include "count_new.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 // NOTE: this is tested in path.members/path.modifiers via the member swap.
 // NOTE: this is tested in path.members/path.modifiers via the member swap.
 int main()
 int main()

+ 1 - 2
test/std/experimental/filesystem/class.path/synop.pass.cpp

@@ -17,13 +17,12 @@
 // typedef basic_string<value_type> string_type;
 // typedef basic_string<value_type> string_type;
 // static constexpr value_type preferred_separator = ...;
 // static constexpr value_type preferred_separator = ...;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 int main() {
 int main() {
   using namespace fs;
   using namespace fs;

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/copy.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // recursive_recursive_directory_iterator(recursive_recursive_directory_iterator const&);
 // recursive_recursive_directory_iterator(recursive_recursive_directory_iterator const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_copy_construct_tests)
 TEST_SUITE(recursive_directory_iterator_copy_construct_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/copy_assign.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // recursive_directory_iterator& operator=(recursive_directory_iterator const&);
 // recursive_directory_iterator& operator=(recursive_directory_iterator const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_copy_assign_tests)
 TEST_SUITE(recursive_directory_iterator_copy_assign_tests)
 
 

+ 4 - 4
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/ctor.pass.cpp

@@ -20,7 +20,7 @@
 // recursive_directory_iterator(const path& p, directory_options options, error_code& ec);
 // recursive_directory_iterator(const path& p, directory_options options, error_code& ec);
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -29,7 +29,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 using RDI = recursive_directory_iterator;
 using RDI = recursive_directory_iterator;
 
 
@@ -87,7 +87,7 @@ TEST_CASE(test_construction_from_bad_path)
 
 
 TEST_CASE(access_denied_test_case)
 TEST_CASE(access_denied_test_case)
 {
 {
-    using namespace std::experimental::filesystem;
+    using namespace fs;
     scoped_test_env env;
     scoped_test_env env;
     path const testDir = env.make_env_path("dir1");
     path const testDir = env.make_env_path("dir1");
     path const testFile = testDir / "testFile";
     path const testFile = testDir / "testFile";
@@ -124,7 +124,7 @@ TEST_CASE(access_denied_test_case)
 
 
 TEST_CASE(access_denied_to_file_test_case)
 TEST_CASE(access_denied_to_file_test_case)
 {
 {
-    using namespace std::experimental::filesystem;
+    using namespace fs;
     scoped_test_env env;
     scoped_test_env env;
     path const testFile = env.make_env_path("file1");
     path const testFile = env.make_env_path("file1");
     env.create_file(testFile, 42);
     env.create_file(testFile, 42);

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/depth.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // int depth() const
 // int depth() const
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_depth_tests)
 TEST_SUITE(recursive_directory_iterator_depth_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/disable_recursion_pending.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // void disable_recursion_pending();
 // void disable_recursion_pending();
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_disable_recursion_pending_tests)
 TEST_SUITE(recursive_directory_iterator_disable_recursion_pending_tests)
 
 

+ 6 - 6
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp

@@ -16,7 +16,7 @@
 // recursive_directory_iterator& operator++();
 // recursive_directory_iterator& operator++();
 // recursive_directory_iterator& increment(error_code& ec) noexcept;
 // recursive_directory_iterator& increment(error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -25,7 +25,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_increment_tests)
 TEST_SUITE(recursive_directory_iterator_increment_tests)
 
 
@@ -140,7 +140,7 @@ TEST_CASE(test_follow_symlinks)
 
 
 TEST_CASE(access_denied_on_recursion_test_case)
 TEST_CASE(access_denied_on_recursion_test_case)
 {
 {
-    using namespace std::experimental::filesystem;
+    using namespace fs;
     scoped_test_env env;
     scoped_test_env env;
     const path testFiles[] = {
     const path testFiles[] = {
         env.create_dir("dir1"),
         env.create_dir("dir1"),
@@ -239,7 +239,7 @@ TEST_CASE(access_denied_on_recursion_test_case)
 // See llvm.org/PR35078
 // See llvm.org/PR35078
 TEST_CASE(test_PR35078)
 TEST_CASE(test_PR35078)
 {
 {
-  using namespace std::experimental::filesystem;
+  using namespace fs;
     scoped_test_env env;
     scoped_test_env env;
     const path testFiles[] = {
     const path testFiles[] = {
         env.create_dir("dir1"),
         env.create_dir("dir1"),
@@ -309,7 +309,7 @@ TEST_CASE(test_PR35078)
 // See llvm.org/PR35078
 // See llvm.org/PR35078
 TEST_CASE(test_PR35078_with_symlink)
 TEST_CASE(test_PR35078_with_symlink)
 {
 {
-  using namespace std::experimental::filesystem;
+  using namespace fs;
     scoped_test_env env;
     scoped_test_env env;
     const path testFiles[] = {
     const path testFiles[] = {
         env.create_dir("dir1"),
         env.create_dir("dir1"),
@@ -393,7 +393,7 @@ TEST_CASE(test_PR35078_with_symlink)
 // See llvm.org/PR35078
 // See llvm.org/PR35078
 TEST_CASE(test_PR35078_with_symlink_file)
 TEST_CASE(test_PR35078_with_symlink_file)
 {
 {
-  using namespace std::experimental::filesystem;
+  using namespace fs;
     scoped_test_env env;
     scoped_test_env env;
     const path testFiles[] = {
     const path testFiles[] = {
         env.create_dir("dir1"),
         env.create_dir("dir1"),

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/move.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // recursive_directory_iterator(recursive_directory_iterator&&) noexcept;
 // recursive_directory_iterator(recursive_directory_iterator&&) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_move_construct_tests)
 TEST_SUITE(recursive_directory_iterator_move_construct_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/move_assign.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // recursive_directory_iterator& operator=(recursive_directory_iterator const&);
 // recursive_directory_iterator& operator=(recursive_directory_iterator const&);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -30,7 +30,7 @@
 #pragma clang diagnostic ignored "-Wself-move"
 #pragma clang diagnostic ignored "-Wself-move"
 #endif
 #endif
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_move_assign_tests)
 TEST_SUITE(recursive_directory_iterator_move_assign_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/pop.pass.cpp

@@ -16,7 +16,7 @@
 // void pop();
 // void pop();
 // void pop(error_code& ec);
 // void pop(error_code& ec);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
 
 
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_pop_tests)
 TEST_SUITE(recursive_directory_iterator_pop_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/recursion_pending.pass.cpp

@@ -15,7 +15,7 @@
 
 
 // bool recursion_pending() const;
 // bool recursion_pending() const;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_recursion_pending_tests)
 TEST_SUITE(recursive_directory_iterator_recursion_pending_tests)
 
 

+ 2 - 2
test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.nonmembers/begin_end.pass.cpp

@@ -16,7 +16,7 @@
 // recursive_directory_iterator begin(recursive_directory_iterator iter) noexcept;
 // recursive_directory_iterator begin(recursive_directory_iterator iter) noexcept;
 // recursive_directory_iterator end(recursive_directory_iterator iter) noexcept;
 // recursive_directory_iterator end(recursive_directory_iterator iter) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <set>
 #include <set>
 #include <cassert>
 #include <cassert>
@@ -26,7 +26,7 @@
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 #include <iostream>
 #include <iostream>
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(recursive_directory_iterator_begin_end_tests)
 TEST_SUITE(recursive_directory_iterator_begin_end_tests)
 
 

+ 1 - 2
test/std/experimental/filesystem/fs.enum/enum.copy_options.pass.cpp

@@ -13,14 +13,13 @@
 
 
 // enum class copy_options;
 // enum class copy_options;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "check_bitmask_types.hpp"
 #include "check_bitmask_types.hpp"
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 constexpr fs::copy_options ME(int val) { return static_cast<fs::copy_options>(val); }
 constexpr fs::copy_options ME(int val) { return static_cast<fs::copy_options>(val); }
 
 

+ 1 - 2
test/std/experimental/filesystem/fs.enum/enum.directory_options.pass.cpp

@@ -13,7 +13,7 @@
 
 
 // enum class directory_options;
 // enum class directory_options;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 #include <sys/stat.h>
 #include <sys/stat.h>
@@ -21,7 +21,6 @@
 #include "test_macros.h"
 #include "test_macros.h"
 #include "check_bitmask_types.hpp"
 #include "check_bitmask_types.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 constexpr fs::directory_options ME(int val) { return static_cast<fs::directory_options>(val); }
 constexpr fs::directory_options ME(int val) { return static_cast<fs::directory_options>(val); }
 
 

+ 1 - 2
test/std/experimental/filesystem/fs.enum/enum.file_type.pass.cpp

@@ -13,13 +13,12 @@
 
 
 // enum class file_type;
 // enum class file_type;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 constexpr fs::file_type ME(int val) { return static_cast<fs::file_type>(val); }
 constexpr fs::file_type ME(int val) { return static_cast<fs::file_type>(val); }
 
 

+ 1 - 2
test/std/experimental/filesystem/fs.enum/enum.perms.pass.cpp

@@ -13,7 +13,7 @@
 
 
 // enum class perms;
 // enum class perms;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 #include <sys/stat.h>
 #include <sys/stat.h>
@@ -21,7 +21,6 @@
 #include "test_macros.h"
 #include "test_macros.h"
 #include "check_bitmask_types.hpp"
 #include "check_bitmask_types.hpp"
 
 
-namespace fs = std::experimental::filesystem;
 
 
 constexpr fs::perms ME(int val) { return static_cast<fs::perms>(val); }
 constexpr fs::perms ME(int val) { return static_cast<fs::perms>(val); }
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.filesystem.synopsis/file_time_type.pass.cpp

@@ -13,7 +13,7 @@
 
 
 // typedef TrivialClock file_time_type;
 // typedef TrivialClock file_time_type;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <chrono>
 #include <chrono>
 #include <type_traits>
 #include <type_traits>
 
 
@@ -25,7 +25,7 @@ typedef std::chrono::time_point<ExpectedClock> ExpectedTimePoint;
 
 
 int main() {
 int main() {
   static_assert(std::is_same<
   static_assert(std::is_same<
-          std::experimental::filesystem::file_time_type,
+          fs::file_time_type,
           ExpectedTimePoint
           ExpectedTimePoint
       >::value, "");
       >::value, "");
 }
 }

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.absolute/absolute.pass.cpp

@@ -13,7 +13,7 @@
 
 
 // path absolute(const path& p, const path& base=current_path());
 // path absolute(const path& p, const path& base=current_path());
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -21,7 +21,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_absolute_path_test_suite)
 TEST_SUITE(filesystem_absolute_path_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.canonical/canonical.pass.cpp

@@ -15,7 +15,7 @@
 // path canonical(const path& p, error_code& ec);
 // path canonical(const path& p, error_code& ec);
 // path canonical(const path& p, const path& base, error_code& ec);
 // path canonical(const path& p, const path& base, error_code& ec);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_canonical_path_test_suite)
 TEST_SUITE(filesystem_canonical_path_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.copy/copy.pass.cpp

@@ -17,7 +17,7 @@
 // void copy(const path& from, const path& to, copy_options options,
 // void copy(const path& from, const path& to, copy_options options,
 //           error_code& ec);
 //           error_code& ec);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cstddef>
 #include <cstddef>
 #include <cassert>
 #include <cassert>
@@ -26,8 +26,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 using CO = fs::copy_options;
 using CO = fs::copy_options;
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.copy_file/copy_file.pass.cpp

@@ -17,7 +17,7 @@
 // bool copy_file(const path& from, const path& to, copy_options options,
 // bool copy_file(const path& from, const path& to, copy_options options,
 //           error_code& ec) noexcept;
 //           error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <chrono>
 #include <chrono>
 #include <cassert>
 #include <cassert>
@@ -26,8 +26,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 using CO = fs::copy_options;
 using CO = fs::copy_options;
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.copy_symlink/copy_symlink.pass.cpp

@@ -15,7 +15,7 @@
 // void copy_symlink(const path& existing_symlink, const path& new_symlink,
 // void copy_symlink(const path& existing_symlink, const path& new_symlink,
 //                   error_code& ec) noexcept;
 //                   error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,8 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_copy_symlink_test_suite)
 TEST_SUITE(filesystem_copy_symlink_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directories/create_directories.pass.cpp

@@ -14,7 +14,7 @@
 // bool create_directories(const path& p);
 // bool create_directories(const path& p);
 // bool create_directories(const path& p, error_code& ec) noexcept;
 // bool create_directories(const path& p, error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -22,8 +22,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_create_directories_test_suite)
 TEST_SUITE(filesystem_create_directories_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory.pass.cpp

@@ -16,7 +16,7 @@
 // bool create_directory(const path& p, const path& attr);
 // bool create_directory(const path& p, const path& attr);
 // bool create_directory(const path& p, const path& attr, error_code& ec) noexcept;
 // bool create_directory(const path& p, const path& attr, error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -27,8 +27,7 @@
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/stat.h>
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 fs::perms read_umask() {
 fs::perms read_umask() {
     mode_t old_mask = umask(0);
     mode_t old_mask = umask(0);

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp

@@ -14,7 +14,7 @@
 // bool create_directory(const path& p, const path& attr);
 // bool create_directory(const path& p, const path& attr);
 // bool create_directory(const path& p, const path& attr, error_code& ec) noexcept;
 // bool create_directory(const path& p, const path& attr, error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -22,8 +22,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_create_directory_test_suite)
 TEST_SUITE(filesystem_create_directory_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory_symlink/create_directory_symlink.pass.cpp

@@ -15,15 +15,14 @@
 // void create_directory_symlink(const path& existing_symlink, const path& new_symlink,
 // void create_directory_symlink(const path& existing_symlink, const path& new_symlink,
 //                   error_code& ec) noexcept;
 //                   error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_create_directory_symlink_test_suite)
 TEST_SUITE(filesystem_create_directory_symlink_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.create_hard_link/create_hard_link.pass.cpp

@@ -15,14 +15,13 @@
 // void create_hard_link(const path& existing_symlink, const path& new_symlink,
 // void create_hard_link(const path& existing_symlink, const path& new_symlink,
 //                   error_code& ec) noexcept;
 //                   error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_create_hard_link_test_suite)
 TEST_SUITE(filesystem_create_hard_link_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.create_symlink/create_symlink.pass.cpp

@@ -15,15 +15,14 @@
 // void create_symlink(const path& existing_symlink, const path& new_symlink,
 // void create_symlink(const path& existing_symlink, const path& new_symlink,
 //                   error_code& ec) noexcept;
 //                   error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <cassert>
 #include <cassert>
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_create_symlink_test_suite)
 TEST_SUITE(filesystem_create_symlink_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.current_path/current_path.pass.cpp

@@ -16,7 +16,7 @@
 // void current_path(path const&);
 // void current_path(path const&);
 // void current_path(path const&, std::error_code& ec) noexcept;
 // void current_path(path const&, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -24,7 +24,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_current_path_path_test_suite)
 TEST_SUITE(filesystem_current_path_path_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/equivalent.pass.cpp

@@ -14,7 +14,7 @@
 // bool equivalent(path const& lhs, path const& rhs);
 // bool equivalent(path const& lhs, path const& rhs);
 // bool equivalent(path const& lhs, path const& rhs, std::error_code& ec) noexcept;
 // bool equivalent(path const& lhs, path const& rhs, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -22,7 +22,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(equivalent_test_suite)
 TEST_SUITE(equivalent_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.exists/exists.pass.cpp

@@ -15,7 +15,7 @@
 // bool exists(path const& p);
 // bool exists(path const& p);
 // bool exists(path const& p, std::error_code& ec) noexcept;
 // bool exists(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(exists_test_suite)
 TEST_SUITE(exists_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.file_size/file_size.pass.cpp

@@ -14,7 +14,7 @@
 // uintmax_t file_size(const path& p);
 // uintmax_t file_size(const path& p);
 // uintmax_t file_size(const path& p, std::error_code& ec) noexcept;
 // uintmax_t file_size(const path& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -22,7 +22,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(file_size_test_suite)
 TEST_SUITE(file_size_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp

@@ -14,7 +14,7 @@
 // uintmax_t hard_link_count(const path& p);
 // uintmax_t hard_link_count(const path& p);
 // uintmax_t hard_link_count(const path& p, std::error_code& ec) noexcept;
 // uintmax_t hard_link_count(const path& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -22,7 +22,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(hard_link_count_test_suite)
 TEST_SUITE(hard_link_count_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_block_file/is_block_file.pass.cpp

@@ -15,7 +15,7 @@
 // bool is_block_file(path const& p);
 // bool is_block_file(path const& p);
 // bool is_block_file(path const& p, std::error_code& ec) noexcept;
 // bool is_block_file(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_block_file_test_suite)
 TEST_SUITE(is_block_file_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_char_file/is_character_file.pass.cpp

@@ -15,7 +15,7 @@
 // bool is_character_file(path const& p);
 // bool is_character_file(path const& p);
 // bool is_character_file(path const& p, std::error_code& ec) noexcept;
 // bool is_character_file(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_character_file_test_suite)
 TEST_SUITE(is_character_file_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_directory/is_directory.pass.cpp

@@ -15,7 +15,7 @@
 // bool is_directory(path const& p);
 // bool is_directory(path const& p);
 // bool is_directory(path const& p, std::error_code& ec) noexcept;
 // bool is_directory(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_directory_test_suite)
 TEST_SUITE(is_directory_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_empty/is_empty.pass.cpp

@@ -14,7 +14,7 @@
 // bool is_empty(path const& p);
 // bool is_empty(path const& p);
 // bool is_empty(path const& p, std::error_code& ec);
 // bool is_empty(path const& p, std::error_code& ec);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -22,7 +22,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_empty_test_suite)
 TEST_SUITE(is_empty_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_fifo/is_fifo.pass.cpp

@@ -15,7 +15,7 @@
 // bool is_fifo(path const& p);
 // bool is_fifo(path const& p);
 // bool is_fifo(path const& p, std::error_code& ec) noexcept;
 // bool is_fifo(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_fifo_test_suite)
 TEST_SUITE(is_fifo_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_other/is_other.pass.cpp

@@ -15,7 +15,7 @@
 // bool is_other(path const& p);
 // bool is_other(path const& p);
 // bool is_other(path const& p, std::error_code& ec) noexcept;
 // bool is_other(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_other_test_suite)
 TEST_SUITE(is_other_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_regular_file/is_regular_file.pass.cpp

@@ -15,7 +15,7 @@
 // bool is_regular_file(path const& p);
 // bool is_regular_file(path const& p);
 // bool is_regular_file(path const& p, std::error_code& ec) noexcept;
 // bool is_regular_file(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_regular_file_test_suite)
 TEST_SUITE(is_regular_file_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_socket/is_socket.pass.cpp

@@ -15,7 +15,7 @@
 // bool is_socket(path const& p);
 // bool is_socket(path const& p);
 // bool is_socket(path const& p, std::error_code& ec) noexcept;
 // bool is_socket(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_socket_test_suite)
 TEST_SUITE(is_socket_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.is_symlink/is_symlink.pass.cpp

@@ -15,7 +15,7 @@
 // bool is_symlink(path const& p);
 // bool is_symlink(path const& p);
 // bool is_symlink(path const& p, std::error_code& ec) noexcept;
 // bool is_symlink(path const& p, std::error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <cassert>
 #include <cassert>
 
 
@@ -23,7 +23,7 @@
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(is_symlink_test_suite)
 TEST_SUITE(is_symlink_test_suite)
 
 

+ 2 - 2
test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp

@@ -18,7 +18,7 @@
 //                      std::error_code& ec) noexcept;
 //                      std::error_code& ec) noexcept;
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 #include <type_traits>
 #include <type_traits>
 #include <chrono>
 #include <chrono>
 #include <fstream>
 #include <fstream>
@@ -31,7 +31,7 @@
 #include <sys/stat.h>
 #include <sys/stat.h>
 #include <iostream>
 #include <iostream>
 
 
-using namespace std::experimental::filesystem;
+using namespace fs;
 
 
 
 
 std::pair<std::time_t, std::time_t> GetTimes(path const& p) {
 std::pair<std::time_t, std::time_t> GetTimes(path const& p) {

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp

@@ -15,14 +15,13 @@
 // void permissions(const path& p, perms prms, std::error_code& ec) noexcept;
 // void permissions(const path& p, perms prms, std::error_code& ec) noexcept;
 
 
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 using PR = fs::perms;
 using PR = fs::perms;
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.read_symlink/read_symlink.pass.cpp

@@ -14,14 +14,13 @@
 // path read_symlink(const path& p);
 // path read_symlink(const path& p);
 // path read_symlink(const path& p, error_code& ec);
 // path read_symlink(const path& p, error_code& ec);
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_read_symlink_test_suite)
 TEST_SUITE(filesystem_read_symlink_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.remove/remove.pass.cpp

@@ -14,14 +14,13 @@
 // bool remove(const path& p);
 // bool remove(const path& p);
 // bool remove(const path& p, error_code& ec) noexcept;
 // bool remove(const path& p, error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_remove_test_suite)
 TEST_SUITE(filesystem_remove_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.remove_all/remove_all.pass.cpp

@@ -14,14 +14,13 @@
 // uintmax_t remove_all(const path& p);
 // uintmax_t remove_all(const path& p);
 // uintmax_t remove_all(const path& p, error_code& ec) noexcept;
 // uintmax_t remove_all(const path& p, error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_remove_all_test_suite)
 TEST_SUITE(filesystem_remove_all_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.rename/rename.pass.cpp

@@ -14,14 +14,13 @@
 // void rename(const path& old_p, const path& new_p);
 // void rename(const path& old_p, const path& new_p);
 // void rename(const path& old_p,  const path& new_p, error_code& ec) noexcept;
 // void rename(const path& old_p,  const path& new_p, error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_rename_test_suite)
 TEST_SUITE(filesystem_rename_test_suite)
 
 

+ 2 - 3
test/std/experimental/filesystem/fs.op.funcs/fs.op.resize_file/resize_file.pass.cpp

@@ -14,14 +14,13 @@
 // void resize_file(const path& p, uintmax_t new_size);
 // void resize_file(const path& p, uintmax_t new_size);
 // void resize_file(const path& p, uintmax_t new_size, error_code& ec) noexcept;
 // void resize_file(const path& p, uintmax_t new_size, error_code& ec) noexcept;
 
 
-#include <experimental/filesystem>
+#include "filesystem_include.hpp"
 
 
 #include "test_macros.h"
 #include "test_macros.h"
 #include "rapid-cxx-test.hpp"
 #include "rapid-cxx-test.hpp"
 #include "filesystem_test_helper.hpp"
 #include "filesystem_test_helper.hpp"
 
 
-using namespace std::experimental::filesystem;
-namespace fs = std::experimental::filesystem;
+using namespace fs;
 
 
 TEST_SUITE(filesystem_resize_file_test_suite)
 TEST_SUITE(filesystem_resize_file_test_suite)
 
 

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff