mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
PYTHONIOENCODING is already specified in `lit.cfg`. The change that added this also added the `<`, which is what actually made this pass - PYTHONIOENCODING only overrides the encoding of stdin/stdout/stderr.
20 lines
629 B
Swift
20 lines
629 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -scan-dependencies %/s %/S/Inputs/unicode_filёnamё.swift -o %t/deps.json
|
|
|
|
// Check the contents of the JSON output
|
|
// RUN: %validate-json < %t/deps.json
|
|
// RUN: %FileCheck %s < %t/deps.json
|
|
|
|
public func bar() {
|
|
print(foo())
|
|
}
|
|
|
|
// CHECK: "swift": "deps"
|
|
// CHECK-NEXT: },
|
|
// CHECK-NEXT: {
|
|
// CHECK-NEXT: "modulePath": "deps.swiftmodule",
|
|
// CHECK-NEXT: "sourceFiles": [
|
|
// CHECK-NEXT: "{{.*}}ScanDependencies/unicode_filename.swift",
|
|
// CHECK-NEXT: "{{.*}}ScanDependencies/Inputs/unicode_filёnamё.swift"
|
|
// CHECK-NEXT: ],
|