Skip to content

Commit 8816142

Browse files
authored
Fix infinite loop (#19)
* Fix infinite loop Fixes #18. * wip
1 parent 873204c commit 8816142

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/XCTestDynamicOverlay/Internal/RuntimeWarnings.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ func runtimeWarning(
3232
_ args: @autoclosure () -> [CVarArg] = []
3333
) {
3434
#if DEBUG && canImport(os)
35-
let message = message()
3635
if !_XCTIsTesting {
3736
unsafeBitCast(
3837
os_log as (OSLogType, UnsafeRawPointer, OSLog, StaticString, CVarArg...) -> Void,
3938
to: ((OSLogType, UnsafeRawPointer, OSLog, StaticString, [CVarArg]) -> Void).self
40-
)(.fault, rw.dso, rw.log, message, args())
39+
)(.fault, rw.dso, rw.log, message(), args())
4140
}
42-
XCTFail(String(format: "\(message)", arguments: args()))
4341
#endif
4442
}

0 commit comments

Comments
 (0)