Skip to content

Commit ec43a19

Browse files
Merge pull request #14204 from dotty-staging/remove-unnecessary-arg-from-tests-main
Remove unnecessary main arg from tests
2 parents 44d907f + 79ab06e commit ec43a19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/test/dotty/tools/vulpix/ChildJVMMain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ChildJVMMain {
1414

1515
private static void runMain(String dir) throws Exception {
1616
Method meth = null;
17-
Object[] args = new Object[]{ new String[]{ "jvm" } };
17+
Object[] args = new Object[]{ new String[]{ } };
1818
try {
1919
String jcp = System.getProperty("java.class.path");
2020
String sep = File.pathSeparator;

tests/run/absoverride.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Iter2(s: String) extends StringIterator(s)
3434
with SyncIterator with LoggedIterator;
3535
object Test {
3636
def main(args: Array[String]): Unit = {
37-
class Iter extends StringIterator(args(0)) with RichIterator with SyncIterator with LoggedIterator
37+
class Iter extends StringIterator("jvm") with RichIterator with SyncIterator with LoggedIterator
3838
val iter = new Iter
3939
iter foreach Console.println
4040
}

0 commit comments

Comments
 (0)