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>
--- 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, "/"))
}
}