[libcxx-commits] [libcxx] [libc++][format] Fixed `println.blank_line.sh.cpp` test on llvm-clang-win-x-* configurations (PR #88011)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 8 09:32:27 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Hristo Hristov (H-G-Hristov)
<details>
<summary>Changes</summary>
Fix for issue: https://github.com/llvm/llvm-project/pull/87277#issuecomment-2041864530
---
Full diff: https://github.com/llvm/llvm-project/pull/88011.diff
1 Files Affected:
- (modified) libcxx/test/std/input.output/iostream.format/print.fun/println.blank_line.sh.cpp (+3-1)
``````````diff
diff --git a/libcxx/test/std/input.output/iostream.format/print.fun/println.blank_line.sh.cpp b/libcxx/test/std/input.output/iostream.format/print.fun/println.blank_line.sh.cpp
index 93c3563d501b20..a262c287108a4c 100644
--- a/libcxx/test/std/input.output/iostream.format/print.fun/println.blank_line.sh.cpp
+++ b/libcxx/test/std/input.output/iostream.format/print.fun/println.blank_line.sh.cpp
@@ -35,13 +35,15 @@
// FILE_DEPENDENCIES: echo.sh
// RUN: %{build}
-// RUN: %{exec} bash echo.sh -ne "\n" > %t.expected
+// RUN: %{exec} bash echo.sh -ne "println blank line test: \n" > %t.expected
// RUN: %{exec} "%t.exe" > %t.actual
// RUN: diff -u %t.actual %t.expected
#include <print>
int main(int, char**) {
+ // On some configurations the `diff -u` test fails if we print a single blank line character `\n`, so we print some text first.
+ std::print("println blank line test: ");
std::println();
return 0;
``````````
</details>
https://github.com/llvm/llvm-project/pull/88011
More information about the libcxx-commits
mailing list