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
PackageLoadingTests: ensure that we use the correct path spelling (#6510)
Tests here verify the paths, which need the native representation. This
ensures that we get the correct spelling of the paths in these tests.
The memory leak on the non-Darwin platforms exists due to the path
string not being pushed into an autorelease pool. The use of
`withUnsafeFileSystemRepresentation` ends up mismatching the arc
separator resulting in a test failure.
PackageBuilderTester(manifest, in: fs){ _, diagnostics in
1444
-
diagnostics.check(diagnostic:"package has unsupported layout; missing system target module map at '/\(predefinedSourceDir)/module.modulemap'", severity:.error)
1445
+
#if _runtime(_ObjC)
1446
+
diagnostics.check(diagnostic:"package has unsupported layout; missing system target module map at '\(map)'", severity:.error)
1447
+
#else
1448
+
// FIXME: there is a memory leak here
1449
+
diagnostics.check(diagnostic:"package has unsupported layout; missing system target module map at '\(String(cString: map.fileSystemRepresentation))'", severity:.error)
0 commit comments