[libcxx-commits] [libcxx] [libc++] Fix file_status.status.eq.ops.pass.cpp test (PR #73444)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Nov 26 04:14:14 PST 2023
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/73444
>From 5950cd84c5669ee578e78fc2ce9e03ca4d8c9b32 Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Sun, 26 Nov 2023 12:24:20 +0100
Subject: [PATCH] [libc++] Fix file_status.status.eq.ops.pass.cpp test
The test was missing the `.pass.cpp` suffix to be recognized as a test.
As a result, this was never run and completely broken.
---
...g.cpp => pstl.exception_handling.pass.cpp} | 0
....copy_move.cpp => ctor.copy_move.pass.cpp} | 0
...cpp => file_status.status.eq.ops.pass.cpp} | 20 +++++++++----------
.../{increment.cpp => increment.pass.cpp} | 0
4 files changed, 10 insertions(+), 10 deletions(-)
rename libcxx/test/std/algorithms/alg.nonmodifying/alg.all_of/{pstl.exception_handling.cpp => pstl.exception_handling.pass.cpp} (100%)
rename libcxx/test/std/experimental/memory/memory.observer.ptr/{ctor.copy_move.cpp => ctor.copy_move.pass.cpp} (100%)
rename libcxx/test/std/input.output/filesystems/class.file_status/{file_status.status.eq.ops.cpp => file_status.status.eq.ops.pass.cpp} (52%)
rename libcxx/test/std/iterators/predef.iterators/counted.iterator/{increment.cpp => increment.pass.cpp} (100%)
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.all_of/pstl.exception_handling.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.all_of/pstl.exception_handling.pass.cpp
similarity index 100%
rename from libcxx/test/std/algorithms/alg.nonmodifying/alg.all_of/pstl.exception_handling.cpp
rename to libcxx/test/std/algorithms/alg.nonmodifying/alg.all_of/pstl.exception_handling.pass.cpp
diff --git a/libcxx/test/std/experimental/memory/memory.observer.ptr/ctor.copy_move.cpp b/libcxx/test/std/experimental/memory/memory.observer.ptr/ctor.copy_move.pass.cpp
similarity index 100%
rename from libcxx/test/std/experimental/memory/memory.observer.ptr/ctor.copy_move.cpp
rename to libcxx/test/std/experimental/memory/memory.observer.ptr/ctor.copy_move.pass.cpp
diff --git a/libcxx/test/std/input.output/filesystems/class.file_status/file_status.status.eq.ops.cpp b/libcxx/test/std/input.output/filesystems/class.file_status/file_status.status.eq.ops.pass.cpp
similarity index 52%
rename from libcxx/test/std/input.output/filesystems/class.file_status/file_status.status.eq.ops.cpp
rename to libcxx/test/std/input.output/filesystems/class.file_status/file_status.status.eq.ops.pass.cpp
index 6b45a39d4a81b4d..8855f1dad41bb2e 100644
--- a/libcxx/test/std/input.output/filesystems/class.file_status/file_status.status.eq.ops.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.file_status/file_status.status.eq.ops.pass.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-// UNSUPPORTED: c++03 c++11 c++14 c++17
+// UNSUPPORTED: c++03, c++11, c++14, c++17
// <filesystem>
@@ -18,30 +18,30 @@
#include <cassert>
#include <filesystem>
-#include "test_macros.h"
+#include "test_comparisons.h"
void test() {
{
- std::fileystem::file_status f1;
- std::fileystem::file_status f2;
+ std::filesystem::file_status f1;
+ std::filesystem::file_status f2;
assert(testEquality(f1, f2, true));
}
{
- std::fileystem::file_status f1{std::filesystem::file_type::regular, std::filesystem::perms::owner_read};
- std::fileystem::file_status f2{std::filesystem::file_type::regular, std::filesystem::perms::owner_read};
+ std::filesystem::file_status f1{std::filesystem::file_type::regular, std::filesystem::perms::owner_read};
+ std::filesystem::file_status f2{std::filesystem::file_type::regular, std::filesystem::perms::owner_read};
assert(testEquality(f1, f2, true));
}
{
- std::fileystem::file_status f1{std::filesystem::file_type::regular, std::filesystem::perms::owner_read};
- std::fileystem::file_status f2{std::filesystem::file_type::none, std::filesystem::perms::owner_read};
+ std::filesystem::file_status f1{std::filesystem::file_type::regular, std::filesystem::perms::owner_read};
+ std::filesystem::file_status f2{std::filesystem::file_type::none, std::filesystem::perms::owner_read};
assert(testEquality(f1, f2, false));
}
{
- std::fileystem::file_status f1{std::filesystem::file_type::regular, std::filesystem::perms::owner_read};
- std::fileystem::file_status f2{std::filesystem::file_type::regular, std::filesystem::perms::owner_write};
+ std::filesystem::file_status f1{std::filesystem::file_type::regular, std::filesystem::perms::owner_read};
+ std::filesystem::file_status f2{std::filesystem::file_type::regular, std::filesystem::perms::owner_write};
assert(testEquality(f1, f2, false));
}
diff --git a/libcxx/test/std/iterators/predef.iterators/counted.iterator/increment.cpp b/libcxx/test/std/iterators/predef.iterators/counted.iterator/increment.pass.cpp
similarity index 100%
rename from libcxx/test/std/iterators/predef.iterators/counted.iterator/increment.cpp
rename to libcxx/test/std/iterators/predef.iterators/counted.iterator/increment.pass.cpp
More information about the libcxx-commits
mailing list