Files
swift-mirror/test/ScanDependencies/unicode_filename.swift
Ben Barham 53c4e8f5e9 [Test] Remove unnecessary PYTHONIOENCODING
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.
2023-08-30 13:39:35 -07:00

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: ],