diff --git a/OSBindings/Mac/Clock SignalTests/65816kromTests.swift b/OSBindings/Mac/Clock SignalTests/65816kromTests.swift index 86fc20a3d..294e6bca2 100644 --- a/OSBindings/Mac/Clock SignalTests/65816kromTests.swift +++ b/OSBindings/Mac/Clock SignalTests/65816kromTests.swift @@ -22,13 +22,13 @@ class Krom65816Tests: XCTestCase { func runTest(_ name: String, pcLimit: UInt32? = nil) { var testData: Data? - if let filename = Bundle(for: type(of: self)).path(forResource: name, ofType: "sfc") { - testData = try? Data(contentsOf: URL(fileURLWithPath: filename)) + if let filename = Bundle(for: type(of: self)).url(forResource: name, withExtension: "sfc") { + testData = try? Data(contentsOf: filename) } var testOutput: String? - if let filename = Bundle(for: type(of: self)).path(forResource: name + "-trace_compare", ofType: "log") { - testOutput = try? String(contentsOf: URL(fileURLWithPath: filename)) + if let filename = Bundle(for: type(of: self)).url(forResource: name + "-trace_compare", withExtension: "log") { + testOutput = try? String(contentsOf: filename) } XCTAssertNotNil(testData)