From d3fc4b2d976bd84f8b16c79bd5f7ac4a8d05827a Mon Sep 17 00:00:00 2001 From: Kyle Farnung Date: Mon, 19 Mar 2018 22:37:29 -0700 Subject: [PATCH] test: chakracore test updates * Updated message baselines to match new file locations * Skipped V8-specific untrusted code mitigation test --- test/message/core_line_numbers.chakracore.out | 14 ++++---- test/message/error_exit.chakracore.out | 12 +++---- test/message/eval_messages.chakracore.out | 32 +++++++++---------- .../if-error-has-good-stack.chakracore.out | 12 +++---- test/message/nexttick_throw.chakracore.out | 6 ++-- test/message/stdin_messages.chakracore.out | 24 +++++++------- ...ed_reference_in_new_context.chakracore.out | 10 +++--- .../vm_display_runtime_error.chakracore.out | 24 +++++++------- .../vm_display_syntax_error.chakracore.out | 24 +++++++------- ..._dont_display_runtime_error.chakracore.out | 12 +++---- ...m_dont_display_syntax_error.chakracore.out | 12 +++---- test/parallel/parallel.status | 3 ++ 12 files changed, 94 insertions(+), 91 deletions(-) diff --git a/test/message/core_line_numbers.chakracore.out b/test/message/core_line_numbers.chakracore.out index 1eb98632882..f4499a2c023 100644 --- a/test/message/core_line_numbers.chakracore.out +++ b/test/message/core_line_numbers.chakracore.out @@ -6,10 +6,10 @@ RangeError: Invalid input at error (punycode.js:*:*) at decode (punycode.js:*:*) at Anonymous function (*test*message*core_line_numbers.js:*:*) - at Module.prototype._compile (module.js:*:*) - at Module._extensions[.js] (module.js:*:*) - at Module.prototype.load (module.js:*:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*:*) - at Module.runMain (module.js:*:*) - at startup (bootstrap_node.js:*:*) \ No newline at end of file + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*:*) + at Module.runMain (internal/modules/cjs/loader.js:*:*) + at startup (internal/bootstrap/node.js:*:*) \ No newline at end of file diff --git a/test/message/error_exit.chakracore.out b/test/message/error_exit.chakracore.out index 5e14ec4af15..f5ab721636b 100644 --- a/test/message/error_exit.chakracore.out +++ b/test/message/error_exit.chakracore.out @@ -5,9 +5,9 @@ assert.js:* AssertionError [ERR_ASSERTION]: 1 strictEqual 2 at Anonymous function (*test*message*error_exit.js:*:*) - at Module.prototype._compile (module.js:*:*) - at Module._extensions[.js] (module.js:*:*) - at Module.prototype.load (module.js:*:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*:*) - at Module.runMain (module.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*:*) + at Module.runMain (internal/modules/cjs/loader.js:*:*) diff --git a/test/message/eval_messages.chakracore.out b/test/message/eval_messages.chakracore.out index 122e3d62405..728c0518f17 100644 --- a/test/message/eval_messages.chakracore.out +++ b/test/message/eval_messages.chakracore.out @@ -8,10 +8,10 @@ SyntaxError: 'with' statements are not allowed in strict mode at createScript (vm.js:*:*) at runInThisContext (vm.js:*:*) at Anonymous function ([eval]-wrapper:*:*) - at Module.prototype._compile (module.js:*:*) - at evalScript (bootstrap_node.js:*:*) - at startup (bootstrap_node.js:*:*) - at bootstrapNodeJSCore (bootstrap_node.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at evalScript (internal/bootstrap/node.js:*:*) + at startup (internal/bootstrap/node.js:*:*) + at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*) 42 42 [eval]:1 @@ -23,10 +23,10 @@ Error: hello at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*:*) at Anonymous function ([eval]-wrapper:*:*) - at Module.prototype._compile (module.js:*:*) - at evalScript (bootstrap_node.js:*:*) - at startup (bootstrap_node.js:*:*) - at bootstrapNodeJSCore (bootstrap_node.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at evalScript (internal/bootstrap/node.js:*:*) + at startup (internal/bootstrap/node.js:*:*) + at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*) [eval]:1 'use strict'; throw new Error("hello") ^ @@ -36,10 +36,10 @@ Error: hello at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*:*) at Anonymous function ([eval]-wrapper:*:*) - at Module.prototype._compile (module.js:*:*) - at evalScript (bootstrap_node.js:*:*) - at startup (bootstrap_node.js:*:*) - at bootstrapNodeJSCore (bootstrap_node.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at evalScript (internal/bootstrap/node.js:*:*) + at startup (internal/bootstrap/node.js:*:*) + at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*) 100 [eval]:1 'use strict'; var x = 100; y = x; @@ -50,10 +50,10 @@ ReferenceError: Variable undefined in strict mode at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*:*) at Anonymous function ([eval]-wrapper:*:*) - at Module.prototype._compile (module.js:*:*) - at evalScript (bootstrap_node.js:*:*) - at startup (bootstrap_node.js:*:*) - at bootstrapNodeJSCore (bootstrap_node.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at evalScript (internal/bootstrap/node.js:*:*) + at startup (internal/bootstrap/node.js:*:*) + at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*) vm.js:* return realRunInThisContext.call(this, options); diff --git a/test/message/if-error-has-good-stack.chakracore.out b/test/message/if-error-has-good-stack.chakracore.out index f3f66832617..8344a21d828 100644 --- a/test/message/if-error-has-good-stack.chakracore.out +++ b/test/message/if-error-has-good-stack.chakracore.out @@ -11,9 +11,9 @@ AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error at b (*if-error-has-good-stack.js:*:*) at a (*if-error-has-good-stack.js:*:*) at Anonymous function (*if-error-has-good-stack.js:*:*) - at Module.prototype._compile (module.js:*:*) - at Module._extensions[.js] (module.js:*:*) - at Module.prototype.load (module.js:*:*) - at tryModuleLoad (module.js:*:*) - at Module._load (module.js:*:*) - at Module.runMain (module.js:*:*) \ No newline at end of file + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*:*) + at Module._load (internal/modules/cjs/loader.js:*:*) + at Module.runMain (internal/modules/cjs/loader.js:*:*) \ No newline at end of file diff --git a/test/message/nexttick_throw.chakracore.out b/test/message/nexttick_throw.chakracore.out index 282ff8ef28d..0ddb4073023 100644 --- a/test/message/nexttick_throw.chakracore.out +++ b/test/message/nexttick_throw.chakracore.out @@ -5,6 +5,6 @@ ReferenceError: *undefined_reference_error_maker* *at *test*message*nexttick_throw.js:*:* *at *_tickCallback (internal/process/next_tick.js:*:*) -*at Module.runMain (module.js:*:*) -*at startup (bootstrap_node.js:*:*) -*at *bootstrap_node.js:*:* +*at Module.runMain (internal/modules/cjs/loader.js:*:*) +*at startup (internal/bootstrap/node.js:*:*) +*at *internal/bootstrap/node.js:*:* diff --git a/test/message/stdin_messages.chakracore.out b/test/message/stdin_messages.chakracore.out index c3f5c4e16a0..b4681caf3ab 100755 --- a/test/message/stdin_messages.chakracore.out +++ b/test/message/stdin_messages.chakracore.out @@ -8,9 +8,9 @@ SyntaxError: 'with' statements are not allowed in strict mode at createScript (vm.js:*:*) at runInThisContext (vm.js:*:*) at Anonymous function ([stdin]-wrapper:*:*) - at Module.prototype._compile (module.js:*:*) - at evalScript (bootstrap_node.js:*:*) - at Anonymous function (bootstrap_node.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at evalScript (internal/bootstrap/node.js:*:*) + at Anonymous function (internal/bootstrap/node.js:*:*) at Reflect.apply (native code) at emit (events.js:*:*) at endReadableNT (_stream_readable.js:*:*) @@ -25,9 +25,9 @@ Error: hello at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*:*) at Anonymous function ([stdin]-wrapper:*:*) - at Module.prototype._compile (module.js:*:*) - at evalScript (bootstrap_node.js:*:*) - at Anonymous function (bootstrap_node.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at evalScript (internal/bootstrap/node.js:*:*) + at Anonymous function (internal/bootstrap/node.js:*:*) at Reflect.apply (native code) at emit (events.js:*:*) at endReadableNT (_stream_readable.js:*:*) @@ -40,9 +40,9 @@ Error: hello at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*:*) at Anonymous function ([stdin]-wrapper:*:*) - at Module.prototype._compile (module.js:*:*) - at evalScript (bootstrap_node.js:*:*) - at Anonymous function (bootstrap_node.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at evalScript (internal/bootstrap/node.js:*:*) + at Anonymous function (internal/bootstrap/node.js:*:*) at Reflect.apply (native code) at emit (events.js:*:*) at endReadableNT (_stream_readable.js:*:*) @@ -56,9 +56,9 @@ ReferenceError: Variable undefined in strict mode at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*:*) at Anonymous function ([stdin]-wrapper:*:*) - at Module.prototype._compile (module.js:*:*) - at evalScript (bootstrap_node.js:*:*) - at Anonymous function (bootstrap_node.js:*:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at evalScript (internal/bootstrap/node.js:*:*) + at Anonymous function (internal/bootstrap/node.js:*:*) at Reflect.apply (native code) at emit (events.js:*:*) at endReadableNT (_stream_readable.js:*:*) diff --git a/test/message/undefined_reference_in_new_context.chakracore.out b/test/message/undefined_reference_in_new_context.chakracore.out index e2597bac981..7e5717d9f39 100644 --- a/test/message/undefined_reference_in_new_context.chakracore.out +++ b/test/message/undefined_reference_in_new_context.chakracore.out @@ -9,8 +9,8 @@ TypeError: Unable to set property 'bar' of undefined or null reference at Script.prototype.runInNewContext (vm.js:*) at runInNewContext (vm.js:*) at Anonymous function (*test*message*undefined_reference_in_new_context.js:*) - at Module.prototype._compile (module.js:*:*) - at Module._extensions[.js] (module.js:*:*) - at Module.prototype.load (module.js:*:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*:*) \ No newline at end of file + at Module.prototype._compile (internal/modules/cjs/loader.js:*:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*:*) \ No newline at end of file diff --git a/test/message/vm_display_runtime_error.chakracore.out b/test/message/vm_display_runtime_error.chakracore.out index 2831d9f4fd5..6f0aa56c1c2 100644 --- a/test/message/vm_display_runtime_error.chakracore.out +++ b/test/message/vm_display_runtime_error.chakracore.out @@ -8,12 +8,12 @@ Error: boo! at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*) at Anonymous function (*test*message*vm_display_runtime_error.js:*) - at Module.prototype._compile (module.js:*) - at Module._extensions[.js] (module.js:*) - at Module.prototype.load (module.js:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*) - at Module.runMain (module.js:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*) + at Module.runMain (internal/modules/cjs/loader.js:*) test.vm:1 throw new Error("spooky!") ^ @@ -22,9 +22,9 @@ Error: spooky! at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*) at Anonymous function (*test*message*vm_display_runtime_error.js:*) - at Module.prototype._compile (module.js:*) - at Module._extensions[.js] (module.js:*) - at Module.prototype.load (module.js:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*) - at Module.runMain (module.js:*) \ No newline at end of file + at Module.prototype._compile (internal/modules/cjs/loader.js:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*) + at Module.runMain (internal/modules/cjs/loader.js:*) \ No newline at end of file diff --git a/test/message/vm_display_syntax_error.chakracore.out b/test/message/vm_display_syntax_error.chakracore.out index 8612564a2e6..88b21e70e1a 100644 --- a/test/message/vm_display_syntax_error.chakracore.out +++ b/test/message/vm_display_syntax_error.chakracore.out @@ -4,12 +4,12 @@ SyntaxError: Expected identifier at createScript (vm.js:*) at runInThisContext (vm.js:*) at Anonymous function (*test*message*vm_display_syntax_error.js:*) - at Module.prototype._compile (module.js:*) - at Module._extensions[.js] (module.js:*) - at Module.prototype.load (module.js:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*) - at Module.runMain (module.js:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*) + at Module.runMain (internal/modules/cjs/loader.js:*) test.vm:* var 5; ^^ @@ -19,9 +19,9 @@ SyntaxError: Expected identifier at createScript (vm.js:*) at runInThisContext (vm.js:*) at Anonymous function (*test*message*vm_display_syntax_error.js:*) - at Module.prototype._compile (module.js:*) - at Module._extensions[.js] (module.js:*) - at Module.prototype.load (module.js:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*) - at Module.runMain (module.js:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*) + at Module.runMain (internal/modules/cjs/loader.js:*) diff --git a/test/message/vm_dont_display_runtime_error.chakracore.out b/test/message/vm_dont_display_runtime_error.chakracore.out index 3e3bfc58ae0..de08bfb2b3a 100644 --- a/test/message/vm_dont_display_runtime_error.chakracore.out +++ b/test/message/vm_dont_display_runtime_error.chakracore.out @@ -9,9 +9,9 @@ Error: boo! at Script.prototype.runInThisContext (vm.js:*:*) at runInThisContext (vm.js:*) at Anonymous function (*test*message*vm_dont_display_runtime_error.js:*) - at Module.prototype._compile (module.js:*) - at Module._extensions[.js] (module.js:*) - at Module.prototype.load (module.js:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*) - at Module.runMain (module.js:*) \ No newline at end of file + at Module.prototype._compile (internal/modules/cjs/loader.js:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*) + at Module.runMain (internal/modules/cjs/loader.js:*) \ No newline at end of file diff --git a/test/message/vm_dont_display_syntax_error.chakracore.out b/test/message/vm_dont_display_syntax_error.chakracore.out index 82f6f9d2e20..a609ddbc244 100644 --- a/test/message/vm_dont_display_syntax_error.chakracore.out +++ b/test/message/vm_dont_display_syntax_error.chakracore.out @@ -8,9 +8,9 @@ SyntaxError: Expected identifier at createScript (vm.js:*) at runInThisContext (vm.js:*) at Anonymous function (*test*message*vm_dont_display_syntax_error.js:*) - at Module.prototype._compile (module.js:*) - at Module._extensions[.js] (module.js:*) - at Module.prototype.load (module.js:*) - at tryModuleLoad (module.js:*) - at Module._load (module.js:*) - at Module.runMain (module.js:*) + at Module.prototype._compile (internal/modules/cjs/loader.js:*) + at Module._extensions[.js] (internal/modules/cjs/loader.js:*) + at Module.prototype.load (internal/modules/cjs/loader.js:*) + at tryModuleLoad (internal/modules/cjs/loader.js:*) + at Module._load (internal/modules/cjs/loader.js:*) + at Module.runMain (internal/modules/cjs/loader.js:*) diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status index ee097e0a80b..179c92fd98b 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -176,6 +176,9 @@ test-process-exception-capture-should-abort-on-uncaught-setflagsfromstring : SKI test-v8-flag-type-check : SKIP test-v8-stats : SKIP +# This test uses the V8 untrusted code mitigation and accompanying V8 option +test-v8-untrusted-code-mitigations : SKIP + [$jsEngine==chakracore && $arch==x64] # These tests are failing for Node-Chakracore and should eventually be fixed test-buffer-includes : SKIP