changeset 1875:e0aab84ee442

8173851: JDK-8008448.js fails to parse test for JDK-8169481 Reviewed-by: jlaskey
author hannesw
date Thu, 02 Feb 2017 22:24:00 +0100
parents ea1d4ecf5862
children 6a951429deb8
files test/script/basic/JDK-8008448.js
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/script/basic/JDK-8008448.js	Thu Feb 02 18:23:28 2017 +0100
+++ b/test/script/basic/JDK-8008448.js	Thu Feb 02 22:24:00 2017 +0100
@@ -35,9 +35,13 @@
 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") }
+    accept: function(f, n) { return n.endsWith(".js") && !(n in skippedTests) }
 });
 
 // load parser API