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

Commit

Permalink
build,test: Fixed test and build issue
Browse files Browse the repository at this point in the history
* Added jsEngine to newly added test
* Skipped napi test

PR-URL: #245
Reviewed-By: Kyle Farnung <Kyle.Farnung@microsoft.com>
  • Loading branch information
kunalspathak authored and New Name committed May 18, 2017
1 parent 75c91ca commit a8d0006
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 8 deletions.
3 changes: 1 addition & 2 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,7 @@ class V8_EXPORT StackFrame {

enum class PromiseHookType { kInit, kResolve, kBefore, kAfter };

typedef void(*PromiseHook)(PromiseHookType type, Local<Promise> promise,
Local<Value> parent);
typedef void(*PromiseHook)(PromiseHookType type, Local<Promise> promise, Local<Value> parent);


class V8_EXPORT Value : public Data {
Expand Down
7 changes: 7 additions & 0 deletions test/addons-napi/test_async/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
const common = require('../../common');
const assert = require('assert');
const child_process = require('child_process');

if (common.isChakraEngine) {
common.skip('Skipped for node-chakracore till #246 is fixed.');
return;
}


const test_async = require(`./build/${common.buildType}/test_async`);

const testException = 'test_async_cb_exception';
Expand Down
5 changes: 5 additions & 0 deletions test/addons-napi/test_make_callback_recurse/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const domain = require('domain');
const binding = require(`./build/${common.buildType}/binding`);
const makeCallback = binding.makeCallback;

if (common.isChakraEngine) {
common.skip('Skipped for node-chakracore till #246 is fixed.');
return;
}

// Make sure this is run in the future.
const mustCallCheckDomains = common.mustCall(checkDomains);

Expand Down
6 changes: 6 additions & 0 deletions test/addons-napi/test_reference/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
const common = require('../../common');
const assert = require('assert');

if (common.isChakraEngine) {
common.skip('Skipped for node-chakracore till #246 is fixed.');
return;
}


const test_reference = require(`./build/${common.buildType}/test_reference`);

// This test script uses external values with finalizer callbacks
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-error-reporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function errExec(script, callback) {

if (!common.isChakraEngine) { // chakra does not output script
// Assert the script is mentioned in error output.
assert.ok(stderr.includes(script));
assert.ok(stderr.includes(script));
}

// Proxy the args for more tests.
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function error_test() {
expect: prompt_multiline,
chakracore: 'skip' },
{ client: client_unix, send: ')',
expect: `undefined\n${prompt_unix},
expect: `undefined\n${prompt_unix}`,
chakracore: 'skip' },
// npm prompt error message
{ client: client_unix, send: 'npm install foobar',
Expand Down
7 changes: 5 additions & 2 deletions test/parallel/test-tls-wrap-event-emmiter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
* Test checks if we get exception instead of runtime error
*/

require('../common');
const common = require('../common');
const assert = require('assert');

const TlsSocket = require('tls').TLSSocket;
const EventEmitter = require('events').EventEmitter;
assert.throws(
() => { new TlsSocket(new EventEmitter()); },
/^TypeError: this\.stream\.pause is not a function/
common.engineSpecificMessage({
v8: /^TypeError: this\.stream\.pause is not a function/,
chakracore: /^TypeError: Object doesn't support property or method 'pause'/
})
);
4 changes: 2 additions & 2 deletions test/testpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ def __init__(self, context, root, section, additional=None):
super(AsyncHooksTestConfiguration, self).__init__(context, root, section,
additional)

def ListTests(self, current_path, path, arch, mode):
def ListTests(self, current_path, path, arch, mode, jsEngine):
result = super(AsyncHooksTestConfiguration, self).ListTests(
current_path, path, arch, mode)
current_path, path, arch, mode, jsEngine)
for test in result:
test.parallel = True
return result

0 comments on commit a8d0006

Please sign in to comment.