Skip to content

Commit

Permalink
fixed compilation error on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Jun 6, 2017
1 parent aca191a commit c1caa79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 0 additions & 11 deletions Tests/CacaoTests/StyleKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,3 @@ let outputDirectory: String = {

return outputDirectory
}()

// this is why I hate old Foundation ObjC APIs
#if os(Linux)
extension NSFileManager {

public static func `default`() -> NSFileManager {

return NSFileManager.defaultManager()
}
}
#endif
11 changes: 2 additions & 9 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,8 @@ import Foundation
import CCairo
import Cairo
import Silica
import Cacao

#if os(OSX) || os(iOS) || os(watchOS)
func XCTMain(_ testCases: [XCTestCaseEntry]) { fatalError("Not Implemented. Linux only") }

func testCase<T: XCTestCase>(_ allTests: [(String, (T) -> () throws -> Void)]) -> XCTestCaseEntry { fatalError("Not Implemented. Linux only") }

struct XCTestCaseEntry { }
#endif
@testable import Cacao
@testable import CacaoTests

XCTMain([testCase(ScreenTests.allTests),
testCase(StyleKitTests.allTests),
Expand Down

0 comments on commit c1caa79

Please sign in to comment.