Skip to content

Remove unnecessary main arg from tests #14204

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/test/dotty/tools/vulpix/ChildJVMMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ChildJVMMain {

private static void runMain(String dir) throws Exception {
Method meth = null;
Object[] args = new Object[]{ new String[]{ "jvm" } };
Object[] args = new Object[]{ new String[]{ } };
try {
String jcp = System.getProperty("java.class.path");
String sep = File.pathSeparator;
Expand Down
2 changes: 1 addition & 1 deletion tests/run/absoverride.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Iter2(s: String) extends StringIterator(s)
with SyncIterator with LoggedIterator;
object Test {
def main(args: Array[String]): Unit = {
class Iter extends StringIterator(args(0)) with RichIterator with SyncIterator with LoggedIterator
class Iter extends StringIterator("jvm") with RichIterator with SyncIterator with LoggedIterator
val iter = new Iter
iter foreach Console.println
}
Expand Down