Skip to content

Commit

Permalink
ASL can no longer be queried on macOS as of 10.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Maloney committed Dec 17, 2016
1 parent f5824f4 commit 37e85ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/LoggingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ class LoggingTests: XCTestCase
}
signal.unlock()

if #available(macOS 10.12, iOS 999999, tvOS 999999, *) {
print("Now that the ASL is deprecated, system log querying is no longer possible on newer OSes; we'll just have to assume/hope that writing to the log succeeded 😬")
return
}
XCTAssert(remainingToFind.isEmpty)
}
}

0 comments on commit 37e85ef

Please sign in to comment.