GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: rename regression tests · nodejs/node@001b672

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-child-process-can-write-to-stdout.js
    • test-net-connect-after-destroy.js
    • test-net-listen-after-destroying-stdin.js
    • test-os-userinfo-handles-getter-errors.js
    • test-vm-access-process-env.js
    • test-vm-api-handles-getter-errors.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-regress-GH-1899.js‎ ‎…est-child-process-can-write-to-stdout.js‎test/parallel/test-regress-GH-1899.js renamed to test/parallel/test-child-process-can-write-to-stdout.js test/parallel/test-regress-GH-1899.js renamed to test/parallel/test-child-process-can-write-to-stdout.js

Copy file name to clipboardExpand all lines: test/parallel/test-child-process-can-write-to-stdout.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
'use strict';
2+
// Tests that a spawned child process can write to stdout without throwing.
3+
// See https://github.com/nodejs/node-v0.x-archive/issues/1899.
4+
25
require('../common');
36
const fixtures = require('../common/fixtures');
47
const assert = require('assert');
Collapse file

‎test/parallel/test-regress-GH-819.js‎ ‎…rallel/test-net-connect-after-destroy.js‎test/parallel/test-regress-GH-819.js renamed to test/parallel/test-net-connect-after-destroy.js test/parallel/test-regress-GH-819.js renamed to test/parallel/test-net-connect-after-destroy.js

Copy file name to clipboardExpand all lines: test/parallel/test-net-connect-after-destroy.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
'use strict';
2+
// Regression test for https://github.com/nodejs/node-v0.x-archive/issues/819.
3+
24
require('../common');
35
const net = require('net');
46

Collapse file

‎test/parallel/test-regress-GH-746.js‎ ‎…est-net-listen-after-destroying-stdin.js‎test/parallel/test-regress-GH-746.js renamed to test/parallel/test-net-listen-after-destroying-stdin.js test/parallel/test-regress-GH-746.js renamed to test/parallel/test-net-listen-after-destroying-stdin.js

Copy file name to clipboardExpand all lines: test/parallel/test-net-listen-after-destroying-stdin.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
// Just test that destroying stdin doesn't mess up listening on a server.
3-
// This is a regression test for GH-746.
3+
// This is a regression test for
4+
// https://github.com/nodejs/node-v0.x-archive/issues/746.
45

56
const common = require('../common');
67
const net = require('net');
Collapse file

‎test/parallel/test-os-userinfo-handles-getter-errors.js‎

Copy file name to clipboard
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
// Tests that os.userInfo correctly handles errors thrown by option property
3+
// getters. See https://github.com/nodejs/node/issues/12370.
4+
5+
const common = require('../common');
6+
const assert = require('assert');
7+
const execFile = require('child_process').execFile;
8+
9+
const script = `os.userInfo({
10+
get encoding() {
11+
throw new Error('xyz');
12+
}
13+
})`;
14+
15+
const node = process.execPath;
16+
execFile(node, [ '-e', script ], common.mustCall((err, stdout, stderr) => {
17+
assert(stderr.includes('Error: xyz'), 'userInfo crashes');
18+
}));
Collapse file

‎test/parallel/test-regress-GH-7511.js‎ ‎…t/parallel/test-vm-access-process-env.js‎test/parallel/test-regress-GH-7511.js renamed to test/parallel/test-vm-access-process-env.js test/parallel/test-regress-GH-7511.js renamed to test/parallel/test-vm-access-process-env.js

Copy file name to clipboardExpand all lines: test/parallel/test-vm-access-process-env.js
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
'use strict';
2+
// Tests that node does neither crash nor throw an error when accessing
3+
// process.env when inside a VM context.
4+
// See https://github.com/nodejs/node-v0.x-archive/issues/7511.
5+
26
require('../common');
37
const assert = require('assert');
48
const vm = require('vm');
Collapse file

‎test/parallel/test-regress-GH-12371.js‎ ‎…lel/test-vm-api-handles-getter-errors.js‎test/parallel/test-regress-GH-12371.js renamed to test/parallel/test-vm-api-handles-getter-errors.js test/parallel/test-regress-GH-12371.js renamed to test/parallel/test-vm-api-handles-getter-errors.js

Copy file name to clipboardExpand all lines: test/parallel/test-vm-api-handles-getter-errors.js
+5-7Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
'use strict';
2+
// Tests that vm.createScript and runInThisContext correctly handle errors
3+
// thrown by option property getters.
4+
// See https://github.com/nodejs/node/issues/12369.
5+
26
const common = require('../common');
37
const assert = require('assert');
48
const execFile = require('child_process').execFile;
59

6-
const scripts = [
7-
`os.userInfo({
8-
get encoding() {
9-
throw new Error('xyz');
10-
}
11-
})`
12-
];
10+
const scripts = [];
1311

1412
['filename', 'cachedData', 'produceCachedData', 'lineOffset', 'columnOffset']
1513
.forEach((prop) => {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.