8057779: Tests failed on Windows when in output contains path to script
authoryan
Tue, 23 Sep 2014 15:58:44 +0400
changeset 26767 edf7cf3c348a
parent 26766 523242aab20f
child 26768 751b0f427090
8057779: Tests failed on Windows when in output contains path to script Reviewed-by: sundar, lagergren, hannesw Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
nashorn/test/script/basic/es6/const-empty.js
nashorn/test/script/basic/es6/const-redeclare-extra.js
nashorn/test/script/basic/es6/const-redeclare.js
nashorn/test/script/basic/es6/let-redeclare-extra.js
nashorn/test/script/basic/es6/let-redeclare.js
nashorn/test/script/basic/es6/let_const_reuse.js
--- a/nashorn/test/script/basic/es6/const-empty.js	Mon Sep 22 14:46:04 2014 +0200
+++ b/nashorn/test/script/basic/es6/const-empty.js	Tue Sep 23 15:58:44 2014 +0400
@@ -33,5 +33,5 @@
     eval('"use strict";\n' +
         'const x;\n');
 } catch (e) {
-    print(e);
+    print(String(e).replace(/\\/g, "/"));
 }
--- a/nashorn/test/script/basic/es6/const-redeclare-extra.js	Mon Sep 22 14:46:04 2014 +0200
+++ b/nashorn/test/script/basic/es6/const-redeclare-extra.js	Tue Sep 23 15:58:44 2014 +0400
@@ -35,7 +35,7 @@
     try {
         eval(code)
     } catch (e) {
-        print(e)
+        print(String(e).replace(/\\/g, "/"))
     }
 }
 
--- a/nashorn/test/script/basic/es6/const-redeclare.js	Mon Sep 22 14:46:04 2014 +0200
+++ b/nashorn/test/script/basic/es6/const-redeclare.js	Tue Sep 23 15:58:44 2014 +0400
@@ -34,5 +34,5 @@
          'const x = 2;\n' +
          'const x = 2;\n');
 } catch (e) {
-    print(e);
+    print(String(e).replace(/\\/g, "/"));
 }
--- a/nashorn/test/script/basic/es6/let-redeclare-extra.js	Mon Sep 22 14:46:04 2014 +0200
+++ b/nashorn/test/script/basic/es6/let-redeclare-extra.js	Tue Sep 23 15:58:44 2014 +0400
@@ -34,7 +34,7 @@
     try {
         eval(code)
     } catch (e) {
-        print(e)
+        print(String(e).replace(/\\/g, "/"))
     }
 }
 
--- a/nashorn/test/script/basic/es6/let-redeclare.js	Mon Sep 22 14:46:04 2014 +0200
+++ b/nashorn/test/script/basic/es6/let-redeclare.js	Tue Sep 23 15:58:44 2014 +0400
@@ -34,5 +34,5 @@
          'let x = 2;\n' +
          'let x = 2;\n');
 } catch (e) {
-    print(e);
+    print(String(e).replace(/\\/g, "/"));
 }
--- a/nashorn/test/script/basic/es6/let_const_reuse.js	Mon Sep 22 14:46:04 2014 +0200
+++ b/nashorn/test/script/basic/es6/let_const_reuse.js	Tue Sep 23 15:58:44 2014 +0400
@@ -34,7 +34,7 @@
      try {
          eval(code)
      } catch (e) {
-         print(e)
+         print(String(e).replace(/\\/g, "/"))
      }
 }