mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
To display stack traces from child processes, the driver combines stdout and stderror together on Unix. This makes the Basic implementation also do that.
15 lines
506 B
Swift
15 lines
506 B
Swift
// RUN: echo %s > %t.filelist.txt
|
|
// RUN: not --crash %target-swift-frontend -typecheck -debug-crash-after-parse -filelist %t.filelist.txt 2>&1 | %FileCheck %s
|
|
|
|
// Check that we see the contents of the input file list in the crash log.
|
|
// CHECK-LABEL: Stack dump
|
|
// CHECK-NEXT: Program arguments: {{.*swift(c?)(.EXE)?}} -frontend
|
|
// CHECK-NEXT: Contents of {{.*}}.filelist.txt:
|
|
// CHECK-NEXT: ---
|
|
// CHECK-NEXT: test{{[\\/]}}Frontend{{[\\/]}}crash.swift{{$}}
|
|
// CHECK-NEXT: ---
|
|
|
|
func anchor() {}
|
|
anchor()
|
|
|