Skip to content

Commit 1cf970d

Browse files
committed
[libc++][print] Make <print> tests require file system support.
`print` functions require `FILE` and `stdout` to be available and cause compilation errors on platforms that don't support the file system. Differential Revision: https://reviews.llvm.org/D156585
1 parent 000d2b8 commit 1cf970d

File tree

8 files changed

+9
-1
lines changed

8 files changed

+9
-1
lines changed

libcxx/test/std/input.output/iostream.format/print.fun/no_file_description.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
2+
// UNSUPPORTED: no-filesystem
23
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
34

45
// XFAIL: msvc, target={{.+}}-windows-gnu

libcxx/test/std/input.output/iostream.format/print.fun/print.sh.cpp

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

88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9+
// UNSUPPORTED: no-filesystem
910
// UNSUPPORTED: executor-has-no-bash
1011
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
1112

libcxx/test/std/input.output/iostream.format/print.fun/println.sh.cpp

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

88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9+
// UNSUPPORTED: no-filesystem
910
// UNSUPPORTED: executor-has-no-bash
1011
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
1112

libcxx/test/std/input.output/iostream.format/print.fun/vprint_nonunicode.sh.cpp

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

88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9+
// UNSUPPORTED: no-filesystem
910
// UNSUPPORTED: executor-has-no-bash
1011
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
1112

libcxx/test/std/input.output/iostream.format/print.fun/vprint_unicode.sh.cpp

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

88
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
9+
// UNSUPPORTED: no-filesystem
910
// UNSUPPORTED: executor-has-no-bash
1011
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
1112

libcxx/test/std/language.support/support.limits/support.limits.general/print.version.compile.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
//
1212
// clang-format off
1313

14+
// UNSUPPORTED: no-filesystem
15+
1416
// <print>
1517

1618
// Test the feature test macros defined by <print>

libcxx/utils/generate_feature_test_macro_components.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,7 @@ def add_version_header(tc):
11791179
"locale": ["UNSUPPORTED: no-localization"],
11801180
"mutex": ["UNSUPPORTED: no-threads"],
11811181
"ostream": ["UNSUPPORTED: no-localization"],
1182+
"print": ["UNSUPPORTED: no-filesystem"],
11821183
"regex": ["UNSUPPORTED: no-localization"],
11831184
"semaphore": ["UNSUPPORTED: no-threads"],
11841185
"shared_mutex": ["UNSUPPORTED: no-threads"],

libcxx/utils/libcxx/test/header_information.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"locale.h": "// UNSUPPORTED: no-localization",
4646
"mutex": "// UNSUPPORTED: no-threads, c++03",
4747
"ostream": "// UNSUPPORTED: no-localization",
48-
"print": "// UNSUPPORTED: availability-fp_to_chars-missing", # TODO PRINT investigate
48+
"print": "// UNSUPPORTED: no-filesystem, c++03, c++11, c++14, c++17, c++20, availability-fp_to_chars-missing", # TODO PRINT investigate
4949
"regex": "// UNSUPPORTED: no-localization",
5050
"semaphore": "// UNSUPPORTED: no-threads, c++03, c++11, c++14, c++17",
5151
"shared_mutex": "// UNSUPPORTED: no-threads, c++03, c++11",

0 commit comments

Comments
 (0)