Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: chakracore test updates
Browse files Browse the repository at this point in the history
* Updated message baselines to match new file locations
* Skipped V8-specific untrusted code mitigation test
  • Loading branch information
kfarnung committed Mar 20, 2018
1 parent 4afb088 commit d3fc4b2
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 91 deletions.
14 changes: 7 additions & 7 deletions test/message/core_line_numbers.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:*:*)
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:*:*)
12 changes: 6 additions & 6 deletions test/message/error_exit.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:*:*)
32 changes: 16 additions & 16 deletions test/message/eval_messages.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
^
Expand All @@ -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;
Expand All @@ -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);
Expand Down
12 changes: 6 additions & 6 deletions test/message/if-error-has-good-stack.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:*:*)
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:*:*)
6 changes: 3 additions & 3 deletions test/message/nexttick_throw.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:*:*
24 changes: 12 additions & 12 deletions test/message/stdin_messages.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:*:*)
Expand All @@ -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:*:*)
Expand All @@ -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:*:*)
Expand All @@ -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:*:*)
Expand Down
10 changes: 5 additions & 5 deletions test/message/undefined_reference_in_new_context.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:*:*)
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:*:*)
24 changes: 12 additions & 12 deletions test/message/vm_display_runtime_error.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
^
Expand All @@ -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:*)
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:*)
24 changes: 12 additions & 12 deletions test/message/vm_display_syntax_error.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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;
^^
Expand All @@ -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:*)
12 changes: 6 additions & 6 deletions test/message/vm_dont_display_runtime_error.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:*)
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:*)
12 changes: 6 additions & 6 deletions test/message/vm_dont_display_syntax_error.chakracore.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:*)
3 changes: 3 additions & 0 deletions test/parallel/parallel.status
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3fc4b2

Please sign in to comment.