From 43a7810dfd56a3753f90271264673455f329bdd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Silvan=20Da=CC=88hn?= Date: Tue, 22 Mar 2016 19:44:52 +0100 Subject: [PATCH 1/2] Fix Swift 2.2 warnings --- DieTests/DieTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DieTests/DieTests.swift b/DieTests/DieTests.swift index 8fbdd57..853539e 100644 --- a/DieTests/DieTests.swift +++ b/DieTests/DieTests.swift @@ -22,7 +22,7 @@ class DieTests: XCTestCase { @noreturn private func mockExit(status: Int32) { exitStatus = status - callCount++ + callCount += 1 expectation?.fulfill() repeat { NSThread.sleepForTimeInterval(0.1) } while (true) } @@ -166,7 +166,7 @@ class DieTests: XCTestCase { // MARK: - Helper - func assertThatItCallsDie(shouldCall: Bool = true, line: UInt = __LINE__ , file: String = __FILE__, block: () -> Void) { + func assertThatItCallsDie(shouldCall: Bool = true, line: UInt = #line , file: String = #file, block: () -> Void) { // when dispatchAndWaitForDie(timeout: 2, block: block) From e627944f0889fbae81a68d2012caf9346c9439a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Silvan=20Da=CC=88hn?= Date: Fri, 25 Mar 2016 14:13:51 +0100 Subject: [PATCH 2/2] Update circle.yml --- circle.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/circle.yml b/circle.yml index 92df3bb..65f9eeb 100644 --- a/circle.yml +++ b/circle.yml @@ -1,3 +1,7 @@ +machine: + xcode: + version: "7.3" + test: override: - xcodebuild clean test -scheme Die