Skip to content

Commit

Permalink
Clean up ProcessInfoExtensionTests by removing print for skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liamnichols committed Jul 31, 2020
1 parent 4bafba7 commit 05fc39f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Tests/MintTests/ProcessInfoExtensionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@
import XCTest

final class ProcessInfoExtensionTests: XCTestCase {
#if arch(x86_64)
func testMachineHardwareName_Intel() {
#if !(os(macOS) && arch(x86_64))
print("Test can only be run on an Intel based Mac")
#else
XCTAssertEqual(ProcessInfo.processInfo.machineHardwareName, "x86_64")
#endif
XCTAssertEqual(ProcessInfo.processInfo.machineHardwareName, "x86_64")
}
#endif

#if arch(arm64)
func testMachineHardwareName_AppleSilicone() {
#if !(os(macOS) && arch(arm64))
print("Test can only be run on an Apple Silicon based Mac")
#else
XCTAssertEqual(ProcessInfo.processInfo.machineHardwareName, "arm64")
#endif
XCTAssertEqual(ProcessInfo.processInfo.machineHardwareName, "arm64")
}
#endif
}

0 comments on commit 05fc39f

Please sign in to comment.