Skip to content

Commit a7888f0

Browse files
committed
[test] Remove redirection stderr->out that corrupted output.
The RUN line was redirecting stderr to stdout, but nothing in the test was checking for the stderr output. However, the last line of stderr was an empty newline, which was printed (in my machine) in the middle of the dump from the AST, breaking the test. If we ever need to check the stderr, it should be redirected to a file, and the file should be passed to FileCheck independently, to avoid concurrent uses of the output buffer.
1 parent 8ea5df1 commit a7888f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Frontend/dump-parse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: not %target-swift-frontend -dump-parse %s 2>&1 | %FileCheck %s
1+
// RUN: not %target-swift-frontend -dump-parse %s | %FileCheck %s
22
// RUN: not %target-swift-frontend -dump-ast %s | %FileCheck %s -check-prefix=CHECK-AST
33

44
// CHECK-LABEL: (func_decl{{.*}}"foo(_:)"

0 commit comments

Comments
 (0)