8173888: Test for JDK-8169481 causes stack overflows in parser tests

Reviewed-by: jlaskey, sundar
This commit is contained in:
Hannes Wallnöfer 2017-02-03 13:28:00 +01:00
parent e2ce2a3727
commit 00665f9723
3 changed files with 2 additions and 1049 deletions

View File

@ -23,4 +23,4 @@
#
###########################################################################
src/jdk/nashorn/api/tree/test/ParseAPITest.java 8173863 linux-i586,windows-i586,solaris-sparcv9
# No nashorn tests are on the problem list.

View File

@ -35,13 +35,9 @@ var File = Java.type("java.io.File");
var FilenameFilter = Java.type("java.io.FilenameFilter");
var SourceHelper = Java.type("jdk.nashorn.test.models.SourceHelper")
var skippedTests = {
"JDK-8169481.js": true // deep AST can cause stack overflow
};
// Filter out non .js files
var files = new File(__DIR__).listFiles(new FilenameFilter() {
accept: function(f, n) { return n.endsWith(".js") && !(n in skippedTests) }
accept: function(f, n) { return n.endsWith(".js") }
});
// load parser API

File diff suppressed because it is too large Load Diff