GeezerVison is showing github.com — test: remove test/gc, integrate into parallel · nodejs/node@0beffc0
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: Makefile +1-19Lines changed: 1 addition & 19 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -314,15 +314,6 @@ benchmark/napi/function_args/build/Release/binding.node: all \ | 314 | 314 | --directory="$(shell pwd)/benchmark/napi/function_args" \ | 315 | 315 | --nodedir="$(shell pwd)" | 316 | 316 |
| 317 | | -# Implicitly depends on $(NODE_EXE). We don't depend on it explicitly because | 318 | | -# it always triggers a rebuild due to it being a .PHONY rule. See the comment | 319 | | -# near the build-addons rule for more background. | 320 | | -test/gc/build/Release/binding.node: test/gc/binding.cc test/gc/binding.gyp | 321 | | - $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \ | 322 | | - --python="$(PYTHON)" \ | 323 | | - --directory="$(shell pwd)/test/gc" \ | 324 | | - --nodedir="$(shell pwd)" | 325 | | - | 326 | 317 | DOCBUILDSTAMP_PREREQS = tools/doc/addon-verify.js doc/api/addons.md | 327 | 318 |
| 328 | 319 | ifeq ($(OSTYPE),aix) | @@ -405,20 +396,12 @@ clear-stalled: | 405 | 396 | echo $${PS_OUT} | xargs kill -9; \ | 406 | 397 | fi | 407 | 398 |
| 408 | | -.PHONY: test-gc | 409 | | -test-gc: all test/gc/build/Release/binding.node | 410 | | - $(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) gc | 411 | | - | 412 | | -.PHONY: test-gc-clean | 413 | | -test-gc-clean: | 414 | | - $(RM) -r test/gc/build | 415 | | - | 416 | 399 | test-build: | all build-addons build-addons-napi | 417 | 400 |
| 418 | 401 | test-build-addons-napi: all build-addons-napi | 419 | 402 |
| 420 | 403 | .PHONY: test-all | 421 | | -test-all: test-build test/gc/build/Release/binding.node ## Run everything in test/. | | 404 | +test-all: test-build ## Run everything in test/. | 422 | 405 | $(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=debug,release | 423 | 406 |
| 424 | 407 | test-all-valgrind: test-build | @@ -1185,7 +1168,6 @@ LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE), $(wildcard \ | 1185 | 1168 | test/cctest/*.h \ | 1186 | 1169 | test/addons-napi/*/*.cc \ | 1187 | 1170 | test/addons-napi/*/*.h \ | 1188 | | - test/gc/binding.cc \ | 1189 | 1171 | tools/icu/*.cc \ | 1190 | 1172 | tools/icu/*.h \ | 1191 | 1173 | )) | |
Collapse file Copy file name to clipboardExpand all lines: test/README.md -1Lines changed: 0 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,6 @@ GitHub with the `autocrlf` git config flag set to true. | 21 | 21 | |common | |Common modules shared among many tests. [Documentation](./common/README.md)| | 22 | 22 | |es-module |Yes |Test ESM module loading.| | 23 | 23 | |fixtures | |Test fixtures used in various tests throughout the test suite.| | 24 | | -|gc |No |Tests for garbage collection related functionality.| | 25 | 24 | |internet |No |Tests that make real outbound connections (mainly networking related modules). Tests for networking related modules may also be present in other directories, but those tests do not make outbound connections.| | 26 | 25 | |known_issues |Yes |Tests reproducing known issues within the system. All tests inside of this directory are expected to fail consistently. If a test doesn't fail on certain platforms, those should be skipped via `known_issues.status`.| | 27 | 26 | |message |Yes |Tests for messages that are output for various conditions (```console.log```, error messages etc.)| | |
Collapse file Copy file name to clipboardExpand all lines: test/gc/.gitignore -1Lines changed: 0 additions & 1 deletion Collapse file Copy file name to clipboardExpand all lines: test/gc/binding.cc -80Lines changed: 0 additions & 80 deletions Collapse file Copy file name to clipboardExpand all lines: test/gc/binding.gyp -9Lines changed: 0 additions & 9 deletions Collapse file Copy file name to clipboardExpand all lines: test/gc/testcfg.py -6Lines changed: 0 additions & 6 deletions Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-gc-http-client-connaborted.js +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | | -// just like test/gc/http-client.js, | | 2 | +// Flags: --expose-gc | | 3 | +// just like test-gc-http-client.js, | 3 | 4 | // but aborting every connection that comes in. | 4 | 5 |
| 5 | 6 | const common = require('../common'); | @@ -9,7 +10,6 @@ function serverHandler(req, res) { | 9 | 10 | } | 10 | 11 |
| 11 | 12 | const http = require('http'); | 12 | | -const weak = require(`./build/${common.buildType}/binding`); | 13 | 13 | const todo = 500; | 14 | 14 | let done = 0; | 15 | 15 | let count = 0; | @@ -36,7 +36,7 @@ function getall() { | 36 | 36 | }, cb).on('error', cb); | 37 | 37 |
| 38 | 38 | count++; | 39 | | - weak(req, afterGC); | | 39 | + common.onGC(req, { ongc }); | 40 | 40 | })(); | 41 | 41 |
| 42 | 42 | setImmediate(getall); | @@ -45,7 +45,7 @@ function getall() { | 45 | 45 | for (let i = 0; i < 10; i++) | 46 | 46 | getall(); | 47 | 47 |
| 48 | | -function afterGC() { | | 48 | +function ongc() { | 49 | 49 | countGC++; | 50 | 50 | } | 51 | 51 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-gc-http-client-onerror.js +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | | -// just like test/gc/http-client.js, | | 2 | +// Flags: --expose-gc | | 3 | +// just like test-gc-http-client.js, | 3 | 4 | // but with an on('error') handler that does nothing. | 4 | 5 |
| 5 | 6 | const common = require('../common'); | @@ -11,7 +12,6 @@ function serverHandler(req, res) { | 11 | 12 | } | 12 | 13 |
| 13 | 14 | const http = require('http'); | 14 | | -const weak = require(`./build/${common.buildType}/binding`); | 15 | 15 | const todo = 500; | 16 | 16 | let done = 0; | 17 | 17 | let count = 0; | @@ -42,7 +42,7 @@ function getall() { | 42 | 42 | }, cb).on('error', onerror); | 43 | 43 |
| 44 | 44 | count++; | 45 | | - weak(req, afterGC); | | 45 | + common.onGC(req, { ongc }); | 46 | 46 | })(); | 47 | 47 |
| 48 | 48 | setImmediate(getall); | @@ -53,7 +53,7 @@ function runTest() { | 53 | 53 | getall(); | 54 | 54 | } | 55 | 55 |
| 56 | | -function afterGC() { | | 56 | +function ongc() { | 57 | 57 | countGC++; | 58 | 58 | } | 59 | 59 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-gc-http-client-timeout.js +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | | -// just like test/gc/http-client.js, | | 2 | +// Flags: --expose-gc | | 3 | +// just like test-gc-http-client.js, | 3 | 4 | // but with a timeout set | 4 | 5 |
| 5 | 6 | const common = require('../common'); | @@ -13,7 +14,6 @@ function serverHandler(req, res) { | 13 | 14 | } | 14 | 15 |
| 15 | 16 | const http = require('http'); | 16 | | -const weak = require(`./build/${common.buildType}/binding`); | 17 | 17 | const todo = 550; | 18 | 18 | let done = 0; | 19 | 19 | let count = 0; | @@ -45,7 +45,7 @@ function getall() { | 45 | 45 | }); | 46 | 46 |
| 47 | 47 | count++; | 48 | | - weak(req, afterGC); | | 48 | + common.onGC(req, { ongc }); | 49 | 49 | })(); | 50 | 50 |
| 51 | 51 | setImmediate(getall); | @@ -54,7 +54,7 @@ function getall() { | 54 | 54 | for (let i = 0; i < 10; i++) | 55 | 55 | getall(); | 56 | 56 |
| 57 | | -function afterGC() { | | 57 | +function ongc() { | 58 | 58 | countGC++; | 59 | 59 | } | 60 | 60 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-gc-http-client.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | | 2 | +// Flags: --expose-gc | 2 | 3 | // just a simple http server and client. | 3 | 4 |
| 4 | 5 | const common = require('../common'); | @@ -9,7 +10,6 @@ function serverHandler(req, res) { | 9 | 10 | } | 10 | 11 |
| 11 | 12 | const http = require('http'); | 12 | | -const weak = require(`./build/${common.buildType}/binding`); | 13 | 13 | const todo = 500; | 14 | 14 | let done = 0; | 15 | 15 | let count = 0; | @@ -40,7 +40,7 @@ function getall() { | 40 | 40 | }, cb); | 41 | 41 |
| 42 | 42 | count++; | 43 | | - weak(req, afterGC); | | 43 | + common.onGC(req, { ongc }); | 44 | 44 | })(); | 45 | 45 |
| 46 | 46 | setImmediate(getall); | @@ -49,7 +49,7 @@ function getall() { | 49 | 49 | for (let i = 0; i < 10; i++) | 50 | 50 | getall(); | 51 | 51 |
| 52 | | -function afterGC() { | | 52 | +function ongc() { | 53 | 53 | countGC++; | 54 | 54 | } | 55 | 55 |
| |
|