Hi bnut (JIRA User), based on the screenshot, it looks like you are seeing this problem when using Xcode’s XCTest, rather than swift-corelibs-xctest. Could you confirm?
Yes, that's correct @briancroom - sorry if you were the wrong person to ping.
I created the target with SwiftPM using swift package init which adds some linux support, and then using swift package generate-xcodeproj. I don't think this would lead it to use swift-corelibs-xctest though.
I've verified this by looking at the `XCTest` module, which contains:
publicvarXCT_UI_TESTING_AVAILABLE: Int32 { get }
//// Copyright (c) 2014-2015 Apple Inc. All rights reserved.//
Hey bnut (JIRA User), sorry for the delay. No worries, I'm a fine person to ask about this!
Yeah, swift-corelibs-xctest is generally only used on non-Apple platforms, so this would be Xcode's version of XCTest that you're using here. I haven't seen this particular behavior before, but it does seem like a bug. Would you be willing to file a Radar about this on https://bugreport.apple.com and attach an Xcode project which reproduces the problem?
Attachment: Download
Environment
Additional Detail from JIRA
md5: d535dadca1b8fdfb15ae346fea01370a
Issue Description:
Using the measure block in XCTest always results in a significant overhead on the first measurement.
The text was updated successfully, but these errors were encountered: