Skip to content

test: convert rm -rf && mkdir -p into %empty-directory #15020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions test/ClangImporter/private_frameworks.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)

// FIXME: BEGIN -enable-source-import hackaround
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource) -emit-module -o %t %clang-importer-sdk-path/swift-modules/CoreGraphics.swift
Expand Down
3 changes: 1 addition & 2 deletions test/ClangImporter/system-framework-search-path.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// The clang module triggers a warning, make sure that -Fsystem has the effect of importing as system, which will suppress the warning.

// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -F %S/Inputs/systemframeworks -module-cache-path %t/mcp1 %s 2> %t/stderr-as-user.txt
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -Fsystem %S/Inputs/systemframeworks -module-cache-path %t/mcp2 %s 2> %t/stderr-as-system.txt
Expand Down
3 changes: 1 addition & 2 deletions test/Compatibility/MixAndMatch/witness_change.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t/SomeObjCModule.swiftmodule -module-name SomeObjCModule -I %t -I %S/Inputs -swift-version 3 %S/Inputs/SomeObjCModuleX.swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t/SomeSwift3Module.swiftmodule -module-name SomeSwift3Module -I %t -I %S/Inputs -swift-version 3 %s
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t/SomeSwift4Module.swiftmodule -module-name SomeSwift4Module -I %t -I %S/Inputs -swift-version 4 %S/Inputs/witness_change_swift4.swift
Expand Down
3 changes: 1 addition & 2 deletions test/Compatibility/bridging-nsnumber-and-nsvalue.swift.gyb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %gyb %s -o %t/bridging-nsnumber-and-nsvalue.swift
// RUN: %target-swift-frontend -typecheck -verify %t/bridging-nsnumber-and-nsvalue.swift -swift-version 3

Expand Down
3 changes: 1 addition & 2 deletions test/Constraints/bridging-nsnumber-and-nsvalue.swift.gyb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %gyb %s -o %t/bridging-nsnumber-and-nsvalue.swift
// RUN: %target-swift-frontend -typecheck -verify %t/bridging-nsnumber-and-nsvalue.swift -swift-version 4

Expand Down
3 changes: 1 addition & 2 deletions test/Frontend/sil-merge-partial-modules.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)

// RUN: %target-swift-frontend -emit-module -primary-file %s %S/Inputs/sil-merge-partial-modules-other.swift -module-name test -enable-resilience -o %t/partial.a.swiftmodule
// RUN: %target-swift-frontend -emit-module %s -primary-file %S/Inputs/sil-merge-partial-modules-other.swift -module-name test -enable-resilience -o %t/partial.b.swiftmodule
Expand Down
3 changes: 1 addition & 2 deletions test/IRGen/autolink-coff-x86.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)

// RUN: %swift -target x86_64--windows-gnu -parse-as-library -parse-stdlib -emit-module-path %t/module.swiftmodule -module-name module -module-link-name module %s
// RUN: %swift -target x86_64--windows-gnu -parse-as-library -parse-stdlib -module-name autolink -I %t -D MAIN_MODULE -emit-ir -o - %s | %FileCheck %s -check-prefix CHECK-GNU-IR
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/cf.sil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %utils/chex.py < %s > %t/cf.sil
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -sdk %S/Inputs %t/cf.sil -emit-ir -import-cf-types | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize %t/cf.sil

Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/generic_classes.sil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %utils/chex.py < %s > %t/generic_classes.sil
// RUN: %target-swift-frontend %t/generic_classes.sil -emit-ir | %FileCheck %t/generic_classes.sil --check-prefix=CHECK --check-prefix=CHECK-%target-runtime
// RUN: %target-swift-frontend -Osize %t/generic_classes.sil -emit-ir | %FileCheck %t/generic_classes.sil --check-prefix=OSIZE
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/generic_structs.sil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %utils/chex.py < %s > %t/generic_structs.sil
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %t/generic_structs.sil -emit-ir | %FileCheck %t/generic_structs.sil

Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/generic_vtable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %utils/chex.py < %s > %t/generic_vtable.swift
// RUN: %target-swift-frontend %t/generic_vtable.swift -emit-ir | %FileCheck %t/generic_vtable.swift --check-prefix=CHECK

Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/keypaths.sil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// -- Convert <i32 0x...> constants to decimal constants that LLVM will print
// RUN: %utils/chex.py < %s > %t/keypaths.sil
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %t/keypaths.sil --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-%target-os
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/keypaths_objc.sil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %utils/chex.py < %s > %t/keypaths_objc.sil
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir %t/keypaths_objc.sil | %FileCheck %t/keypaths_objc.sil --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
// REQUIRES: objc_interop
Expand Down
3 changes: 1 addition & 2 deletions test/IRGen/mixed_mode_class_with_unimportable_fields.sil
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t/UsingObjCStuff.swiftmodule -module-name UsingObjCStuff -I %t -I %S/Inputs/mixed_mode -swift-version 4 %S/Inputs/mixed_mode/UsingObjCStuff.swift
// RUN: %target-swift-frontend -emit-ir -I %t -I %S/Inputs/mixed_mode -module-name main -swift-version 3 %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
// RUN: %target-swift-frontend -emit-ir -I %t -I %S/Inputs/mixed_mode -module-name main -swift-version 4 %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
Expand Down
3 changes: 1 addition & 2 deletions test/IRGen/mixed_mode_class_with_unimportable_fields.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t/UsingObjCStuff.swiftmodule -module-name UsingObjCStuff -I %t -I %S/Inputs/mixed_mode -swift-version 4 %S/Inputs/mixed_mode/UsingObjCStuff.swift
// RUN: %target-swift-frontend -emit-ir -I %t -I %S/Inputs/mixed_mode -module-name main -swift-version 3 %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-V3
// RUN: %target-swift-frontend -emit-ir -I %t -I %S/Inputs/mixed_mode -module-name main -swift-version 4 %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-V4
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/objc_types_as_member.sil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %build-irgen-test-overlays
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) %s -emit-ir | %FileCheck %s

Expand Down
3 changes: 1 addition & 2 deletions test/IRGen/two_tag_enums.swift.gyb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %gyb %s > %t/main.swift
// RUN: %target-swift-frontend -emit-ir %t/main.swift | %FileCheck %s

Expand Down
2 changes: 1 addition & 1 deletion test/Index/Store/output-failure.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir %t
// RUN: %empty-directory(%t)
// RUN: mkdir %t/idx

// Before indexing, do a dry-run to ensure any clang modules are cached. We
Expand Down
2 changes: 1 addition & 1 deletion test/Index/Store/record-hashing.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir %t
// RUN: %empty-directory(%t)
// RUN: echo "func foo() {}" > %t/theinput.swift

// RUN: %target-swift-frontend -index-store-path %t/idx -typecheck %t/theinput.swift -o %t/s.o
Expand Down
3 changes: 1 addition & 2 deletions test/Index/Store/record-with-compile-error.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// XFAIL: linux

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -index-store-path %t/idx -o %t/file.o -typecheck %s -verify
// RUN: c-index-test core -print-record %t/idx | %FileCheck %s

Expand Down
3 changes: 1 addition & 2 deletions test/Index/Store/unit-from-compile.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// XFAIL: linux

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -c -index-store-path %t/idx %s -o %t/file1.o -module-name some_module_test
// RUN: c-index-test core -print-unit %t/idx | %FileCheck %s
// RUN: %target-swift-frontend -c -index-store-path %t/idx_opt %s -o %t/file1.o -module-name some_module_test -O
Expand Down
4 changes: 2 additions & 2 deletions test/Index/Store/unit-multiple-sourcefiles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

//===--- Building source files separately with a module merge at the end

// RUN: rm -rf %t && mkdir %t
// RUN: %empty-directory(%t)
// RUN: touch %t/s1.swift %t/s2.swift
// RUN: %target-swift-frontend -index-store-path %t/idx -primary-file %t/s1.swift %t/s2.swift -o %t/s1.o -c -module-name main -emit-module -emit-module-path %t/s1.swiftmodule
// RUN: %target-swift-frontend -index-store-path %t/idx %t/s1.swift -primary-file %t/s2.swift -o %t/s2.o -c -module-name main -emit-module -emit-module-path %t/s2.swiftmodule
Expand All @@ -11,7 +11,7 @@

//===--- Building source files together (e.g. WMO)

// RUN: rm -rf %t && mkdir %t
// RUN: %empty-directory(%t)
// RUN: touch %t/s1.swift %t/s2.swift
// RUN: %target-swift-frontend -index-store-path %t/idx %t/s1.swift %t/s2.swift -o %t/s1.o -o %t/s2.o -c -module-name main -emit-module -emit-module-path %t/main.swiftmodule
// RUN: c-index-test core -print-unit %t/idx | %FileCheck %s
Expand Down
4 changes: 2 additions & 2 deletions test/Index/Store/unit-one-sourcefile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
// RUN: %target-swift-frontend -index-store-path %t/idx %s -o %t/file1.o -typecheck
// RUN: c-index-test core -print-unit %t/idx | %FileCheck %s -check-prefix=FILE1

// RUN: rm -rf %t && mkdir %t
// RUN: %empty-directory(%t)
// RUN: touch %t/s2.swift
// RUN: %target-swift-frontend -index-store-path %t/idx -primary-file %s %t/s2.swift -o %t/file1.o -typecheck
// RUN: c-index-test core -print-unit %t/idx | %FileCheck %s -check-prefix=FILE1

// RUN: rm -rf %t && mkdir %t
// RUN: %empty-directory(%t)
// RUN: touch %t/s2.swift
// RUN: %target-swift-frontend -index-store-path %t/idx %s -primary-file %t/s2.swift -o %t/file2.o -typecheck
// RUN: c-index-test core -print-unit %t/idx | %FileCheck %s -check-prefix=FILE2
Expand Down
2 changes: 1 addition & 1 deletion test/Index/Store/unit-pcm-dependency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// FIXME: index the bridging header!

// RUN: rm -rf %t && mkdir %t
// RUN: %empty-directory(%t)
// RUN: echo 'import ClangModuleA' > %t/s2.swift
// RUN: %target-swift-frontend -index-store-path %t/idx %s %t/s2.swift -o %t/s1.o -o %t/s2.o -I %S/Inputs -c -emit-module -module-name main -emit-module-path %t/main.swiftmodule -module-cache-path %t/mcp
// RUN: c-index-test core -print-unit %t/idx > %t/both.txt
Expand Down
2 changes: 1 addition & 1 deletion test/Index/Store/unit-swiftmodule-dependency.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir %t
// RUN: %empty-directory(%t)

// RUN: %target-swift-frontend -index-store-path %t/idx %S/Inputs/SwiftModuleA.swift -emit-module -o %t/SwiftModuleA.swiftmodule
// RUN: %target-swift-frontend -index-store-path %t/idx %S/Inputs/SwiftModuleB.swift -emit-module -o %t/SwiftModuleB.swiftmodule -I %t
Expand Down
3 changes: 1 addition & 2 deletions test/Index/Store/unit-with-bridging-header.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// XFAIL: linux

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-pch -index-store-path %t/idx -o %t/bridge-head.pch %S/Inputs/bridge-head.h
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -import-objc-header %t/bridge-head.pch -primary-file %s -o %t/s1.o -index-store-path %t/idx
// RUN: c-index-test core -print-record %t/idx | %FileCheck %s --check-prefix=PCH-RECORD
Expand Down
3 changes: 1 addition & 2 deletions test/Index/index_module.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
//
// RUN: %target-swift-frontend -emit-module -o %t %s
// RUN: %target-swift-ide-test -print-indexed-symbols -module-name index_module -source-filename %s > %t.out
Expand Down
3 changes: 1 addition & 2 deletions test/Index/index_system_module.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
//
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/my_system_overlay/my_system_overlay.swift -Xcc -I -Xcc %S/Inputs/my_system_overlay
// RUN: %target-swift-ide-test -print-indexed-symbols -module-to-print my_system_overlay -source-filename %s -I %t -Xcc -I -Xcc %S/Inputs/my_system_overlay > %t.out
Expand Down
3 changes: 1 addition & 2 deletions test/Index/roles.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
//
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/imported_swift_module.swift
// RUN: %target-swift-ide-test -print-indexed-symbols -source-filename %s -I %t | %FileCheck %s
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: cp %s %t/main.swift
// RUN: %target-build-swift -whole-module-optimization -emit-module-path %t/UsingObjCStuff.swiftmodule -c -o %t/UsingObjCStuff.o -module-name UsingObjCStuff -I %t -I %S/Inputs/mixed_mode -swift-version 4 -parse-as-library %S/Inputs/mixed_mode/UsingObjCStuff.swift
// RUN: %target-build-swift -o %t/a.out.v3 -I %t -I %S/Inputs/mixed_mode -module-name main -swift-version 3 %t/main.swift %t/UsingObjCStuff.o
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -swift-version 4 -Xfrontend -enable-swift3-objc-inference %s -o %t/a.out
// RUN: %target-run %t/a.out 2>&1 | %FileCheck %s -check-prefix=CHECK_WARNINGS
// RUN: env SWIFT_DEBUG_IMPLICIT_OBJC_ENTRYPOINT=0 SIMCTL_CHILD_SWIFT_DEBUG_IMPLICIT_OBJC_ENTRYPOINT=0 %target-run %t/a.out 2>&1 | %FileCheck %s -check-prefix=CHECK_NOTHING
Expand Down
2 changes: 1 addition & 1 deletion test/Interpreter/conditional_conformances_runtime.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-build-swift %s -o %t/a.out
// RUN: %target-run %t/a.out
// REQUIRES: executable_test
Expand Down
3 changes: 1 addition & 2 deletions test/Interpreter/enforce_exclusive_access.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -swift-version 4 %s -o %t/a.out -enforce-exclusivity=checked -Onone
//
// RUN: %target-run %t/a.out
Expand Down
3 changes: 1 addition & 2 deletions test/Interpreter/enforce_exclusive_access_backtrace.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -swift-version 3 %s -o %t/a.out -enforce-exclusivity=checked -Onone
//
// RUN: %target-run %t/a.out 2>&1 | %FileCheck %s
Expand Down
3 changes: 1 addition & 2 deletions test/Interpreter/objc_types_as_members.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
//
// RUN: %target-clang -fobjc-arc %S/Inputs/ObjCClasses/ObjCClasses.m -c -o %t/ObjCClasses.o
// RUN: %target-build-swift -O -I %S/Inputs/ObjCClasses/ -Xlinker %t/ObjCClasses.o %s -o %t/a.out
Expand Down
3 changes: 1 addition & 2 deletions test/Interpreter/protocol_initializers.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -swift-version 5 %s -o %t/a.out
//
// RUN: %target-run %t/a.out
Expand Down
3 changes: 1 addition & 2 deletions test/Interpreter/protocol_initializers_class.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -swift-version 5 %s -o %t/a.out
//
// RUN: %target-run %t/a.out
Expand Down
3 changes: 1 addition & 2 deletions test/Interpreter/subclass_existentials.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
//
//===----------------------------------------------------------------------===//
//
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-build-swift %s -o %t/a.out
// RUN: %target-run %t/a.out
// REQUIRES: executable_test
Expand Down
3 changes: 1 addition & 2 deletions test/Interpreter/subclass_existentials_objc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
//
//===----------------------------------------------------------------------===//
//
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %empty-directory(%t)
// RUN: %target-build-swift %s -o %t/a.out
// RUN: %target-run %t/a.out
// REQUIRES: executable_test
Expand Down
3 changes: 2 additions & 1 deletion test/Migrator/always_remove_old_remap_file.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// RUN: rm -rf %t && mkdir -p %t && cp %s %t/input.swift
// RUN: %empty-directory(%t)
// RUN: cp %s %t/input.swift
// RUN: %target-swift-frontend -c -update-code -primary-file %t/input.swift -emit-migrated-file-path %t/always_remove_old_remap_file.result -emit-remap-file-path %t/always_remove_old_remap_file.remap -o /dev/null
// RUN: ls %t/always_remove_old_remap_file.remap

Expand Down
3 changes: 2 additions & 1 deletion test/Migrator/double_fixit_ok.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// RUN: %target-swift-frontend -typecheck %s -swift-version 3
// RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t/double_fixit_ok.result -swift-version 3
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t/double_fixit_ok.result -swift-version 3
// RUN: diff -u %s.expected %t/double_fixit_ok.result
// RUN: %target-swift-frontend -typecheck %s.expected -swift-version 4

Expand Down
3 changes: 2 additions & 1 deletion test/Migrator/double_fixit_ok.swift.expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// RUN: %target-swift-frontend -typecheck %s -swift-version 3
// RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t/double_fixit_ok.result -swift-version 3
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t/double_fixit_ok.result -swift-version 3
// RUN: diff -u %s.expected %t/double_fixit_ok.result
// RUN: %target-swift-frontend -typecheck %s.expected -swift-version 4

Expand Down
3 changes: 2 additions & 1 deletion test/Migrator/no_double_edit_ast_pass.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// REQUIRES: OS=macosx
// REQUIRES: objc_interop
// RUN: %target-swift-frontend -typecheck %s -F %S/mock-sdk -swift-version 3
// RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -c -F %S/mock-sdk -api-diff-data-file %S/DoubleEditAPI.json -update-code -primary-file %s -emit-migrated-file-path %t/no_double_edit_ast_pass.result -swift-version 3 -o /dev/null
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -c -F %S/mock-sdk -api-diff-data-file %S/DoubleEditAPI.json -update-code -primary-file %s -emit-migrated-file-path %t/no_double_edit_ast_pass.result -swift-version 3 -o /dev/null
// RUN: diff -u %s.expected %t/no_double_edit_ast_pass.result

import Bar
Expand Down
3 changes: 2 additions & 1 deletion test/Migrator/no_double_edit_ast_pass.swift.expected
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// REQUIRES: OS=macosx
// REQUIRES: objc_interop
// RUN: %target-swift-frontend -typecheck %s -F %S/mock-sdk -swift-version 3
// RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -c -F %S/mock-sdk -api-diff-data-file %S/DoubleEditAPI.json -update-code -primary-file %s -emit-migrated-file-path %t/no_double_edit_ast_pass.result -swift-version 3 -o /dev/null
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -c -F %S/mock-sdk -api-diff-data-file %S/DoubleEditAPI.json -update-code -primary-file %s -emit-migrated-file-path %t/no_double_edit_ast_pass.result -swift-version 3 -o /dev/null
// RUN: diff -u %s.expected %t/no_double_edit_ast_pass.result

import Bar
Expand Down
3 changes: 2 additions & 1 deletion test/Migrator/no_duplicate_aarch64_use_tbi.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// REQUIRES: OS=ios
// REQUIRES: CPU=arm64
// RUN: %target-swift-frontend -typecheck %s -swift-version 3
// RUN: rm -rf %t && mkdir -p %t && cd %t && %swiftc_driver -c -update-code -target arm64-apple-ios10.3 -output-file-map %S/Inputs/no_duplicate_aarch64_use_tbi_ofm.json -swift-version 3 %s -v
// RUN: %empty-directory(%t)
// RUN: cd %t && %swiftc_driver -c -update-code -target arm64-apple-ios10.3 -output-file-map %S/Inputs/no_duplicate_aarch64_use_tbi_ofm.json -swift-version 3 %s -v
// RUN: cd %t && %swiftc_driver -c -update-code -target arm64-apple-ios10.3 -output-file-map %S/Inputs/no_duplicate_aarch64_use_tbi_ofm.json -swift-version 3 %s -### > %t/driver_actions.txt
// RUN: %FileCheck --check-prefix=CHECK-REMAP %s < %t/no_duplicate_aarch64_use_tbi.remap
// RUN: %FileCheck --check-prefix=CHECK-ACTIONS %s < %t/driver_actions.txt
Expand Down
3 changes: 2 additions & 1 deletion test/Migrator/nsopengl_openglversion.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// REQUIRES: objc_interop
// REQUIRES: OS=macosx
// RUN: %target-swift-frontend -typecheck -swift-version 3 %s
// RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -c -update-code -disable-migrator-fixits -primary-file %s -emit-migrated-file-path %t/nsopengl_openglversion.swift.result -o /dev/null
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -c -update-code -disable-migrator-fixits -primary-file %s -emit-migrated-file-path %t/nsopengl_openglversion.swift.result -o /dev/null
// RUN: diff -u %S/nsopengl_openglversion.swift.expected %t/nsopengl_openglversion.swift.result
// RUN: %target-swift-frontend -typecheck -swift-version 4 %t/nsopengl_openglversion.swift.result

Expand Down
3 changes: 2 additions & 1 deletion test/Migrator/nsopengl_openglversion.swift.expected
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// REQUIRES: objc_interop
// REQUIRES: OS=macosx
// RUN: %target-swift-frontend -typecheck -swift-version 3 %s
// RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -c -update-code -disable-migrator-fixits -primary-file %s -emit-migrated-file-path %t/nsopengl_openglversion.swift.result -o /dev/null
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -c -update-code -disable-migrator-fixits -primary-file %s -emit-migrated-file-path %t/nsopengl_openglversion.swift.result -o /dev/null
// RUN: diff -u %S/nsopengl_openglversion.swift.expected %t/nsopengl_openglversion.swift.result
// RUN: %target-swift-frontend -typecheck -swift-version 4 %t/nsopengl_openglversion.swift.result

Expand Down
7 changes: 4 additions & 3 deletions test/Migrator/rdar31892850.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -typecheck -primary-file %s -module-cache-path %t/mcp -emit-remap-file-path %t/edits.remap
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -primary-file %s -module-cache-path %t/mcp -emit-remap-file-path %t/edits.remap
// RUN: %FileCheck %s -input-file=%t/edits.remap

enum SomeStringEnum : String {
Expand All @@ -14,12 +15,12 @@ func foo() {
// CHECK:[
// CHECK: {
// CHECK: "file": "{{.*}}rdar31892850.swift",
// CHECK: "offset": 305,
// CHECK: "offset": 306,
// CHECK: "text": "SomeStringEnum(rawValue: "
// CHECK: },
// CHECK: {
// CHECK: "file": "{{.*}}rdar31892850.swift",
// CHECK: "offset": 309,
// CHECK: "offset": 310,
// CHECK: "text": ")!"
// CHECK: }
// CHECK:]
Loading