Skip to content

Commit 718a292

Browse files
committed
Revert "[libc++] Generate symlinks in static_test_env on the fly"
This reverts commit 645ad5b. This commit did not incorporate all the changes intended.
1 parent 932f027 commit 718a292

File tree

24 files changed

+5
-77
lines changed

24 files changed

+5
-77
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dne
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dir3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dir1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
empty_file

libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/path.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ TEST_CASE(path_ctor_calls_refresh) {
121121
TEST_CASE(path_ctor_dne) {
122122
using namespace fs;
123123

124-
static_test_env static_env;
125-
126124
{
127125
std::error_code ec = GetTestEC();
128126
directory_entry ent(StaticEnv::DNE, ec);

libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/file_size.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ TEST_CASE(not_regular_file) {
112112
TEST_CASE(error_reporting) {
113113
using namespace fs;
114114

115-
static_test_env static_env;
116115
scoped_test_env env;
117116

118117
const path dir = env.create_dir("dir");

libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/hard_link_count.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ TEST_CASE(not_regular_file) {
110110
TEST_CASE(error_reporting) {
111111
using namespace fs;
112112

113-
static_test_env static_env;
114113
scoped_test_env env;
115114

116115
const path dir = env.create_dir("dir");

libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/last_write_time.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ TEST_CASE(basic) {
8484
TEST_CASE(error_reporting) {
8585
using namespace fs;
8686

87-
static_test_env static_env;
8887
scoped_test_env env;
8988

9089
const path dir = env.create_dir("dir");

libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/ctor.pass.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ TEST_CASE(test_constructor_signatures)
6060

6161
TEST_CASE(test_construction_from_bad_path)
6262
{
63-
static_test_env static_env;
6463
std::error_code ec;
6564
directory_options opts = directory_options::none;
6665
const directory_iterator endIt;
@@ -170,7 +169,6 @@ TEST_CASE(test_open_on_empty_directory_equals_end)
170169

171170
TEST_CASE(test_open_on_directory_succeeds)
172171
{
173-
static_test_env static_env;
174172
const path testDir = StaticEnv::Dir;
175173
std::set<path> dir_contents(std::begin(StaticEnv::DirIterationList),
176174
std::end( StaticEnv::DirIterationList));
@@ -192,7 +190,6 @@ TEST_CASE(test_open_on_directory_succeeds)
192190

193191
TEST_CASE(test_open_on_file_fails)
194192
{
195-
static_test_env static_env;
196193
const path testFile = StaticEnv::File;
197194
const directory_iterator endIt{};
198195
{
@@ -228,7 +225,6 @@ TEST_CASE(test_open_on_dot_dir)
228225

229226
TEST_CASE(test_open_on_symlink)
230227
{
231-
static_test_env static_env;
232228
const path symlinkToDir = StaticEnv::SymlinkToDir;
233229
std::set<path> dir_contents;
234230
for (path const& p : StaticEnv::DirIterationList) {

libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ TEST_CASE(test_increment_signatures)
4343

4444
TEST_CASE(test_prefix_increment)
4545
{
46-
static_test_env static_env;
4746
const path testDir = StaticEnv::Dir;
4847
const std::set<path> dir_contents(std::begin(StaticEnv::RecDirIterationList),
4948
std::end( StaticEnv::RecDirIterationList));
@@ -67,7 +66,6 @@ TEST_CASE(test_prefix_increment)
6766

6867
TEST_CASE(test_postfix_increment)
6968
{
70-
static_test_env static_env;
7169
const path testDir = StaticEnv::Dir;
7270
const std::set<path> dir_contents(std::begin(StaticEnv::RecDirIterationList),
7371
std::end( StaticEnv::RecDirIterationList));
@@ -91,7 +89,6 @@ TEST_CASE(test_postfix_increment)
9189

9290
TEST_CASE(test_increment_method)
9391
{
94-
static_test_env static_env;
9592
const path testDir = StaticEnv::Dir;
9693
const std::set<path> dir_contents(std::begin(StaticEnv::RecDirIterationList),
9794
std::end( StaticEnv::RecDirIterationList));
@@ -116,7 +113,6 @@ TEST_CASE(test_increment_method)
116113

117114
TEST_CASE(test_follow_symlinks)
118115
{
119-
static_test_env static_env;
120116
const path testDir = StaticEnv::Dir;
121117
auto const& IterList = StaticEnv::RecDirFollowSymlinksIterationList;
122118

0 commit comments

Comments
 (0)