Skip to content

Commit 5bb4f6e

Browse files
committed
[test] Simplify 'test/SourceKit/InterfaceGen/gen_header.swift' to check for the swift 4 change without duplicating the test file
1 parent 896c464 commit 5bb4f6e

File tree

2 files changed

+2
-237
lines changed

2 files changed

+2
-237
lines changed

test/SourceKit/InterfaceGen/gen_header.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
// RUN: echo '#include "header2.h"' > %t.m
1212
// RUN: %sourcekitd-test -req=interface-gen -header %S/Inputs/header2.h -swift-version=4 -- -fsyntax-only %t.m -I %S/Inputs > %t.header2.swift4.response
13-
// RUN: diff -u %s.header2.swift4.response %t.header2.swift4.response
13+
// RUN: %FileCheck -input-file %t.header2.swift4.response %s -check-prefix=SWIFT4
14+
// SWIFT4: public func show_only_for_swift_4()

test/SourceKit/InterfaceGen/gen_header.swift.header2.swift4.response

Lines changed: 0 additions & 236 deletions
This file was deleted.

0 commit comments

Comments
 (0)