Skip to content

[test] Add missing "executable_test" requirements #21050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

jrose-apple
Copy link
Contributor

These keep the tests from failing when running for device targets with --param swift_test_mode=only_non_executable.

@@ -1,5 +1,8 @@
// RUN: %target-typecheck-verify-swift -swift-version 4.2
// RUN: %target-run-simple-swift -swift-version 4.2 %s | %FileCheck %s
// RUN: %target-build-swift -swift-version 4.2 %s -o %t
// RUN: %target-run %t | %FileCheck %s
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brentdax I tweaked this as well because %target-run-simple-swift passes its arguments to the executable, not to the compiler. At the moment the test suite's still being run in pre-Swift-5 mode anyway so it didn't change anything.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brentdax Also it might be good to create a new executable test for this in test/Interpreter, so that test/Parse remains non-executable, even if it requires duplicating some test code.

Copy link
Contributor

@beccadax beccadax Dec 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with the test being moved or split—I didn't realize we were trying to keep that directory non-executable. Do you want me to do that?

@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

Copy link
Contributor

@aschwaighofer aschwaighofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jrose-apple jrose-apple force-pushed the executable-expectations branch from 0be6996 to 79dfb8e Compare December 5, 2018 21:54
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test macOS

@jrose-apple jrose-apple merged commit b126768 into swiftlang:master Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants