Skip to content
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

[SR-1717] Force -module-name "main" for %target-run-simple-swift #44326

Open
harlanhaskins opened this issue Jun 9, 2016 · 0 comments
Open
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. good first issue Good for newcomers

Comments

@harlanhaskins
Copy link
Collaborator

Previous ID SR-1717
Radar None
Original Reporter @harlanhaskins
Type Bug
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, StarterBug, Test
Assignee None
Priority Medium

md5: 88bb4e4d7a2dac50fea1f7404c34a64a

Issue Description:

When running tests in the interpreter, there are lots of tests that fail because they're implicitly relying on the module name being the binary name.

For example, in Optionals.swift, line 379, we expect an optional to print as "Optional(Optional.TestNoString)", but it comes in as "Optional(main.TestNoString)" because the module is set to main in the interpreter.

The module should just always be main when running tests.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant