Skip to content

Commit e18a61f

Browse files
committed
test: repair the cross_module_derivative_attr test
Convert to dynamic libraries, fix the run lines, remove the workaround for the TBD validation.
1 parent 3039ca4 commit e18a61f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -working-directory %t -I%t -parse-as-library -emit-module -module-name module1 -emit-module-path %t/module1.swiftmodule -emit-library -static %S/Inputs/cross_module_derivative_attr/module1/module1.swift %S/Inputs/cross_module_derivative_attr/module1/module1_other_file.swift -Xfrontend -validate-tbd-against-ir=none
3-
// RUN: %target-build-swift -I%t -L%t %S/Inputs/cross_module_derivative_attr/main/main.swift -o %t/a.out -lm -lmodule1 -Xfrontend -validate-tbd-against-ir=none
4-
// RUN: %target-run %t/a.out
2+
// RUN: %target-build-swift-dylib(%t/%target-library-name(module1)) %S/Inputs/cross_module_derivative_attr/module1/module1.swift %S/Inputs/cross_module_derivative_attr/module1/module1_other_file.swift -emit-module -emit-module-path %t/module1.swiftmodule -module-name module1
3+
// -Xfrontend -validate-tbd-against-ir=none
4+
// RUN: %target-build-swift -I%t -L%t %S/Inputs/cross_module_derivative_attr/main/main.swift -o %t/a.out -lmodule1 %target-rpath(%t)
5+
// -Xfrontend -validate-tbd-against-ir=none
6+
// RUN: %target-codesign %t/a.out
7+
// RUN: %target-codesign %t/%target-library-name(module1)
8+
// RUN: %target-run %t/a.out %t/%target-library-name(module1)
59
// REQUIRES: executable_test

0 commit comments

Comments
 (0)