From 1457790800a3eb4a6145c26404bce51573ac455b Mon Sep 17 00:00:00 2001 From: "andrea.bergia" Date: Fri, 27 Oct 2023 14:44:58 +0200 Subject: [PATCH] Modified `DoctestsTest` to include optimization level The current behavior is a bit misleading, because the test case name includes only the javascript source file, but not the optimization level. So, you get three tests with the exact same names, for levels -1, 0, and 9. This change simply adds the optimization level in the name of the test. --- testsrc/org/mozilla/javascript/tests/DoctestsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsrc/org/mozilla/javascript/tests/DoctestsTest.java b/testsrc/org/mozilla/javascript/tests/DoctestsTest.java index 5757dd01d3..d2aeebca43 100644 --- a/testsrc/org/mozilla/javascript/tests/DoctestsTest.java +++ b/testsrc/org/mozilla/javascript/tests/DoctestsTest.java @@ -64,7 +64,7 @@ public static String loadFile(File f) throws IOException { return new String(buf); } - @Parameters(name = "{0}") + @Parameters(name = "{0} opt:{2}") public static Collection doctestValues() throws IOException { File[] doctests = getDoctestFiles(); List result = new ArrayList();