Skip to content

test: remove destructor from node_test_fixture - #18524

Closed
danbev wants to merge 1 commit into
nodejs:masterfrom
danbev:node_test_fixture_remove_destructor
Closed

test: remove destructor from node_test_fixture#18524
danbev wants to merge 1 commit into
nodejs:masterfrom
danbev:node_test_fixture_remove_destructor

Conversation

@danbev

Copy link
Copy Markdown
Contributor

This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.

Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Feb 2, 2018
@danbev

Copy link
Copy Markdown
ContributorAuthor

@danbev

Copy link
Copy Markdown
ContributorAuthor
test/node-test-commit-plinux failure looks unrelated

console output:

Building addon /home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons-napi/4_object_factory/gyp info spawn /usr/bin/pythongyp info spawn args [ '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/deps/npm/node_modules/node-gyp/gyp/gyp_main.py',gyp info spawn args 'binding.gyp',gyp info spawn args '-f',gyp info spawn args 'make',gyp info spawn args '-I',gyp info spawn args '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons/03_object_factory/build/config.gypi',gyp info spawn args '-I',gyp info spawn args '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/deps/npm/node_modules/node-gyp/addon.gypi',gyp info spawn args '-I',gyp info spawn args '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/common.gypi',gyp info spawn args '-Dlibrary=shared_library',gyp info spawn args '-Dvisibility=default',gyp info spawn args '-Dnode_root_dir=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404',gyp info spawn args '-Dnode_gyp_dir=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/deps/npm/node_modules/node-gyp',gyp info spawn args '-Dnode_lib_file=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/$(Configuration)/node.lib',gyp info spawn args '-Dmodule_root_dir=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons/03_object_factory',gyp info spawn args '-Dnode_engine=v8',gyp info spawn args '--depth=.',gyp info spawn args '--no-parallel',gyp info spawn args '--generator-output',gyp info spawn args 'build',gyp info spawn args '-Goutput_dir=.' ]gyp info spawn makegyp info make[2]: Entering directory `/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons-napi/4_object_factory/build'gyp info it worked if it ends with okgyp info using node-gyp@3.6.2gyp info using node@10.0.0-pre | linux | ppc64gyp info chdir /home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons-napi/4_object_factory/gyp info spawn /usr/bin/pythongyp info spawn args [ '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/deps/npm/node_modules/node-gyp/gyp/gyp_main.py',gyp info spawn args 'binding.gyp',gyp info spawn args '-f',gyp info spawn args 'make',gyp info spawn args '-I',gyp info spawn args '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons-napi/4_object_factory/build/config.gypi',gyp info spawn args '-I',gyp info spawn args '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/deps/npm/node_modules/node-gyp/addon.gypi',gyp info spawn args '-I',gyp info spawn args '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/common.gypi',gyp info spawn args '-Dlibrary=shared_library',gyp info spawn args '-Dvisibility=default',gyp info spawn args '-Dnode_root_dir=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404',gyp info spawn args '-Dnode_gyp_dir=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/deps/npm/node_modules/node-gyp',gyp info spawn args '-Dnode_lib_file=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/$(Configuration)/node.lib',gyp info spawn args '-Dmodule_root_dir=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons-napi/4_object_factory',gyp info spawn args '-Dnode_engine=v8',gyp info spawn args '--depth=.',gyp info spawn args '--no-parallel',gyp info spawn args '--generator-output',gyp info spawn args 'build',gyp info spawn args '-Goutput_dir=.' ]gyp info spawn makegyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ]make[2]: Entering directory `/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/out'spawn args CC(target) Release/obj.target/binding/binding.o [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ] touch 29a4abf18ff5ed2e75fa1308c90336966b01bb40.intermediate CXX(target) Release/obj.target/addon/addon.o LD_LIBRARY_PATH=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/out/Release/lib.host:/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/src/inspector; mkdir -p /home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/out/Release/obj/gen/src/inspector/protocol /home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/out/Release/obj/gen/include/inspector; python ../../third_party/inspector_protocol/CodeGenerator.py --jinja_dir ../../third_party --output_base "/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/out/Release/obj/gen/src/inspector" --config inspector_protocol_config.json SOLINK_MODULE(target) Release/obj.target/addon.node SOLINK_MODULE(target) Release/obj.target/binding.node COPY Release/addon.node COPY Release/binding.nodemake[2]: Leaving directory `/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons/03_object_factory/build'make[2]: write errorgyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 1gyp ERR! stack at ChildProcess.onExit (/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/deps/npm/node_modules/node-gyp/lib/build.js:258:23)gyp ERR! stack at ChildProcess.emit (events.js:131:13)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)gyp ERR! System Linux 4.2.0-42-powerpc64-smpgyp ERR! command "/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/out/Release/node" "/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/deps/npm/node_modules/node-gyp/bin/node-gyp" "--loglevel=info" "rebuild" "--python=/usr/bin/python" "--directory=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons/03_object_factory/" "--nodedir=/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404"make[2]: Leaving directory `/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons-napi/4_object_factory/build'gyp ERR! cwd /home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcbe-ubuntu1404/test/addons/03_object_factorygyp ERR! node -v v10.0.0-pregyp ERR! node-gyp -v v3.6.2gyp ERR! not ok gyp info ok make[1]: *** [test/addons/.buildstamp] Error 1make[1]: *** Waiting for unfinished jobs....

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 3, 2018
@danbev

Copy link
Copy Markdown
ContributorAuthor

Landed in 83c9315.

@danbevdanbev closed this Feb 5, 2018
@danbev
danbev deleted the node_test_fixture_remove_destructor branch February 5, 2018 06:00
danbev added a commit that referenced this pull request Feb 5, 2018
This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
PR-URL: #18524
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Feb 21, 2018
This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
PR-URL: #18524
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Feb 21, 2018
This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
PR-URL: #18524
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Feb 21, 2018
This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
PR-URL: #18524
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Feb 21, 2018
MylesBorins pushed a commit that referenced this pull request Mar 20, 2018
This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
PR-URL: #18524
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Mar 28, 2018
This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
PR-URL: #18524
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Mar 30, 2018
This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
PR-URL: #18524
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request May 2, 2018
MayaLekova pushed a commit to MayaLekova/node that referenced this pull request May 8, 2018
This commit removes the destructor from node_test_fixture.h which calls
the TearDown function causing TearDown to be called twice. This also
allows us to remove the check of the platform_ in TearDown.
Also the Setup/TearDown functions in AliasBufferTest are removed as they
are not necessary.
PR-URL: nodejs#18524
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@danbev@jasnell@MylesBorins@BridgeAR@nodejs-github-bot