You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a facility for tests to opt in to loading the downloadable Metal toolchain
This will greatly reduce the number of tests which fail when there is a problem with the downloadable Metal toolchain.
This is off by default, since very few tests need this. Two tests currently opt in.
/// This will create a customized `Core` object using the specified parameters, providing a test with detailed control over the contents of the `Core` it uses.
// When this code is being loaded directly via unit tests, find the running Xcode path.
52
52
//
53
53
// This is a "well known" launch parameter set in Xcode's schemes.
@@ -74,33 +74,35 @@ extension Core {
74
74
//
75
75
// If the given environment already contains `EXTERNAL_TOOLCHAINS_DIR` and `TOOLCHAINS`, we're assuming that we do not have to obtain any toolchain information.
/// Individual classes may pass an instance of this protocol to `CoreBasedTests.makeCore()` to configure which special elements of the testing core they need. `Core.createInitializedTestingCore()` (above) will configure the core based on what's passed here.
253
+
///
254
+
/// This allows tests which don't care about those elements to not fail because of errors trying to load them.
0 commit comments