Skip to content

Commit ee760d8

Browse files
authored
[test] Fix the install_name for class_getImageName.swift tests (#17946)
Important when %target-run is not going to run the executable from its current location. rdar://problem/42184572
1 parent 6ef475f commit ee760d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Interpreter/SDK/class_getImageName-static.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -emit-library -o %t/libSimpleNSObjectSubclass.dylib %S/Inputs/SimpleNSObjectSubclass.swift
2+
// RUN: %target-build-swift -emit-library -o %t/libSimpleNSObjectSubclass.dylib %S/Inputs/SimpleNSObjectSubclass.swift -Xlinker -install_name -Xlinker @executable_path/libSimpleNSObjectSubclass.dylib
33
// RUN: %target-codesign %t/libSimpleNSObjectSubclass.dylib
44

55
// RUN: %target-build-swift %s -o %t/main -lSimpleNSObjectSubclass -L%t -import-objc-header %S/Inputs/class_getImageName-static-helper.h

test/Interpreter/SDK/class_getImageName.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -emit-library -o %t/libGetImageNameHelper.dylib -emit-module %S/Inputs/class_getImageName-helper.swift
2+
// RUN: %target-build-swift -emit-library -o %t/libGetImageNameHelper.dylib -emit-module %S/Inputs/class_getImageName-helper.swift -Xlinker -install_name -Xlinker @executable_path/libGetImageNameHelper.dylib
33
// RUN: %target-codesign %t/libGetImageNameHelper.dylib
44

55
// RUN: %target-build-swift -g %s -I %t -o %t/main -L %t -lGetImageNameHelper

0 commit comments

Comments
 (0)