[libcxx-commits] [libcxx] 66427d7 - [libcxx] [test] Mark tests for libcxx specific implementation details with LIBCPP_ONLY()
Martin Storsjö via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 16 07:37:48 PDT 2020
Author: Martin Storsjö
Date: 2020-10-16T17:36:56+03:00
New Revision: 66427d7359ac94d11bda18d613984ddf296c0302
URL: https://github.com/llvm/llvm-project/commit/66427d7359ac94d11bda18d613984ddf296c0302
DIFF: https://github.com/llvm/llvm-project/commit/66427d7359ac94d11bda18d613984ddf296c0302.diff
LOG: [libcxx] [test] Mark tests for libcxx specific implementation details with LIBCPP_ONLY()
This matches an existing marking in enum.path.format.pass.cpp.
Differential Revision: https://reviews.llvm.org/D89534
Added:
Modified:
libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp
libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp
libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp
libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp
index b4e688aa87b2..c5d73eb96c44 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp
@@ -30,7 +30,7 @@ int main(int, char**) {
typedef std::underlying_type<E>::type UT;
static_assert(!std::is_convertible<E, UT>::value, "");
- static_assert(std::is_same<UT, unsigned short>::value, ""); // Implementation detail
+ LIBCPP_ONLY(static_assert(std::is_same<UT, unsigned short>::value, "")); // Implementation detail
typedef check_bitmask_type<E, E::skip_existing, E::update_existing> BitmaskTester;
assert(BitmaskTester::check());
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp
index e1458e18ed18..a9eee7980ace 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp
@@ -30,7 +30,7 @@ int main(int, char**) {
// Check that E is a scoped enum by checking for conversions.
typedef std::underlying_type<E>::type UT;
static_assert(!std::is_convertible<E, UT>::value, "");
- static_assert(std::is_same<UT, unsigned char>::value, "");
+ LIBCPP_ONLY(static_assert(std::is_same<UT, unsigned char>::value, ""));
typedef check_bitmask_type<E, E::follow_directory_symlink, E::skip_permission_denied> BitmaskTester;
assert(BitmaskTester::check());
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp
index cfeb5fe94a58..dd2a868f2d0a 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp
@@ -29,7 +29,7 @@ int main(int, char**) {
typedef std::underlying_type<E>::type UT;
static_assert(!std::is_convertible<E, UT>::value, "");
- static_assert(std::is_same<UT, signed char>::value, ""); // Implementation detail
+ LIBCPP_ONLY(static_assert(std::is_same<UT, signed char>::value, "")); // Implementation detail
static_assert(
E::none == ME(0) &&
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp
index 30c7ce6887aa..ca990cb2d3bb 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp
@@ -31,7 +31,7 @@ int main(int, char**) {
typedef std::underlying_type<E>::type UT;
static_assert(!std::is_convertible<E, UT>::value, "");
- static_assert(std::is_same<UT, unsigned >::value, ""); // Implementation detail
+ LIBCPP_ONLY(static_assert(std::is_same<UT, unsigned >::value, "")); // Implementation detail
typedef check_bitmask_type<E, E::group_all, E::owner_all> BitmaskTester;
assert(BitmaskTester::check());
More information about the libcxx-commits
mailing list