Skip to content

Commit e406b54

Browse files
committed
test: ensure IDE/objc_send_collector_1.swift is valid regardless of whether the emitted trace file is pretty printed
1 parent 4a5d041 commit e406b54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IDE/objc_send_collector_1.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// RUN: %empty-directory(%t/CUSTOM_DIR)
33

44
// RUN: %target-swift-frontend -I %t/lib/swift -typecheck %s %S/Inputs/objc_send_collector_2.swift -module-name main -swift-version 5 -F %S/Inputs/mock-sdk -emit-loaded-module-trace-path %t/.MODULE_TRACE
5-
// RUN: cat %t/.SWIFT_FINE_DEPENDENCY_TRACE.json | %FileCheck %s
5+
// RUN: cat %t/.SWIFT_FINE_DEPENDENCY_TRACE.json | %{python} -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' | %FileCheck %s
66

77
// RUN: SWIFT_COMPILER_OBJC_MESSAGE_TRACE_PATH=%t/given_trace.json %target-swift-frontend -I %t/lib/swift -typecheck %s %S/Inputs/objc_send_collector_2.swift -module-name main -swift-version 5 -F %S/Inputs/mock-sdk -emit-loaded-module-trace-path %t/.MODULE_TRACE
8-
// RUN: cat %t/given_trace.json | %FileCheck %s
8+
// RUN: cat %t/given_trace.json | %{python} -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' | %FileCheck %s
99

1010
// REQUIRES: objc_interop
1111

0 commit comments

Comments
 (0)