Skip to content

Commit ea2392e

Browse files
authored
[libc++][format] Fixed println.blank_line.sh.cpp test on llvm-clang-win-x-* configurations (#88011)
Fix for issue: #87277 (comment) The test fails on the windows to linux cross builders. The proposed resolution is to print some text. The issue is possibly due to the original test outputting a single `\n` character.
1 parent 93e2a9a commit ea2392e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@
3535

3636
// FILE_DEPENDENCIES: echo.sh
3737
// RUN: %{build}
38-
// RUN: %{exec} bash echo.sh -ne "\n" > %t.expected
38+
// RUN: %{exec} bash echo.sh -ne "println blank line test: \n" > %t.expected
3939
// RUN: %{exec} "%t.exe" > %t.actual
4040
// RUN: diff -u %t.actual %t.expected
4141

4242
#include <print>
4343

4444
int main(int, char**) {
45+
// On some configurations the `diff -u` test fails if we print a single blank line character `\n`, so we print some text first.
46+
std::print("println blank line test: ");
4547
std::println();
4648

4749
return 0;

0 commit comments

Comments
 (0)