[SR-1717] Force -module-name "main" for %target-run-simple-swift #44326
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
good first issue
Good for newcomers
Additional Detail from JIRA
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.
The text was updated successfully, but these errors were encountered: