Skip to content

Commit 91b7920

Browse files
committed
Use diff instead of cmp
We're seeing some flakiness in this test, but aren't sure what it's complaining about. `cmp` only says where the differencewas, but doesn't print what was different. `diff` prints what was difference so we have a chance to figure out what happened.
1 parent ddd3522 commit 91b7920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/InterfaceHash/edited_method_body.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
// RUN: %target-swift-frontend -typecheck -primary-file %t/x.swift -emit-reference-dependencies-path %t/x.swiftdeps -module-name main
1515
// RUN: %S/../Inputs/process_fine_grained_swiftdeps_with_fingerprints.sh %swift-dependency-tool %t/x.swiftdeps %t/b-processed.swiftdeps
1616

17-
// RUN: cmp %t/{a,b}-processed.swiftdeps
17+
// We can use `diff` here because this test isn't run on Windows
18+
// RUN: diff %t/{a,b}-processed.swiftdeps
1819

1920
// BEGIN a.swift
2021
class C {

0 commit comments

Comments
 (0)