     }
 }
 
-func XCTAssertBuildFails(paths: String..., file: MyString = __FILE__, line: UInt = __LINE__) {
+func XCTAssertBuildFails(paths: String..., file: StaticString = __FILE__, line: UInt = __LINE__) {
     let prefix = Path.join(paths)
     if (try? executeSwiftBuild(prefix)) != nil {
         XCTFail("`swift build' succeeded but should have failed", file: file, line: line)
     }
 }
 
-func XCTAssertFileExists(paths: String..., file: MyString = __FILE__, line: UInt = __LINE__) {
+func XCTAssertFileExists(paths: String..., file: StaticString = __FILE__, line: UInt = __LINE__) {
     let path = Path.join(paths)
     if !path.isFile {
         XCTFail("Expected file doesn’t exist: \(path)", file: file, line: line)
     }
 }
 
-func XCTAssertDirectoryExists(paths: String..., file: MyString = __FILE__, line: UInt = __LINE__) {
+func XCTAssertDirectoryExists(paths: String..., file: StaticString = __FILE__, line: UInt = __LINE__) {
     let path = Path.join(paths)
     if !path.isDirectory {
         XCTFail("Expected directory doesn’t exist: \(path)", file: file, line: line)
     }
 }
 
-func XCTAssertNoSuchPath(paths: String..., file: MyString = __FILE__, line: UInt = __LINE__) {
+func XCTAssertNoSuchPath(paths: String..., file: StaticString = __FILE__, line: UInt = __LINE__) {
     let path = Path.join(paths)
     if path.exists {
         XCTFail("path exists by should not: \(path)", file: file, line: line)

    return try popen([toolPath, "--chdir", chdir], redirectStandardError: true, printOutput: false, environment: env)
}

func mktmpdir(file: MyString = __FILE__, line: UInt = __LINE__, @noescape body: (String) throws -> Void) {
    do {
        try POSIX.mkdtemp("spm-tests") { dir in
            defer { _ = try? rmtree(dir) }

import func POSIX.system
import func POSIX.popen


func fixture(name fixtureName: String, tag: String = "1.2.3", file: StaticString = __FILE__, line: UInt = __LINE__, @noescape body: (String) throws -> Void) {

    func gsub(input: String) -> String {
        return input.characters.split("/").map(String.init).joinWithSeparator("_")
