We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a78ad commit ff3143fCopy full SHA for ff3143f
Tests/CBORDecoderTests.swift
@@ -202,3 +202,20 @@ class CBORDecoderTests: XCTestCase {
202
}
203
204
205
+
206
+#if os(Android)
207
208
+extension XCTestCase {
209
+ /// XCTestCase.measure on Android is problematic because
210
+ /// the emulator on a virtualized runner can be quite slow
211
+ /// but there is no way to set the standard deviation threshold
212
+ /// for failure, so we override it to simply run the block
213
+ /// and not perform any measurement.
214
+ ///
215
+ /// See: https://github.com/swiftlang/swift-corelibs-xctest/pull/506
216
+ func measure(_ count: Int = 0, _ block: () -> ()) {
217
+ block()
218
+ }
219
+}
220
+#endif
221
0 commit comments