Skip to content

Commit a06d5d7

Browse files
[libcxx] Require non-root-user for tests that check permissions
This patch adds a REQUIRES: non-root-user to libc++ lit tests that require a non root user to pass. This is similar to other projects where annotations have been added to enable running tests inside a container without explicitly changing the user.
1 parent f22cff7 commit a06d5d7

File tree

27 files changed

+27
-26
lines changed

27 files changed

+27
-26
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111

1212
// <filesystem>

libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/assign.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111

1212
// <filesystem>

libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/refresh.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111

1212
// The string reported on errors changed, which makes those tests fail when run

libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/replace_filename.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111

1212
// <filesystem>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111

1212
// The string reported on errors changed, which makes those tests fail when run

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111

1212
// Starting in Android N (API 24), SELinux policy prevents the shell user from

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111

1212
// The string reported on errors changed, which makes those tests fail when run

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111

1212
// The string reported on errors changed, which makes those tests fail when run

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111
// UNSUPPORTED: no-filesystem
1212
// UNSUPPORTED: availability-filesystem-missing

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: can-create-symlinks
9+
// REQUIRES: can-create-symlinks, non-root-user
1010
// UNSUPPORTED: c++03, c++11, c++14
1111
// UNSUPPORTED: no-filesystem
1212
// UNSUPPORTED: availability-filesystem-missing

0 commit comments

Comments
 (0)