Skip to content

test: remove unnecessary process.exit calls from test files#62020

Open
aduh95 wants to merge 2 commits intonodejs:mainfrom
aduh95:test-process-no-exit
Open

test: remove unnecessary process.exit calls from test files#62020
aduh95 wants to merge 2 commits intonodejs:mainfrom
aduh95:test-process-no-exit

Conversation

@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Feb 27, 2026

We have a bunch of calls that do nothing, this PR removes those to make the tests more readable

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/performance
  • @nodejs/security-wg
  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to the benchmark subsystem. buffer Issues and PRs related to the buffer subsystem. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Feb 27, 2026
@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Feb 27, 2026
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 27, 2026
@nodejs-github-bot
Copy link
Collaborator

Comment on lines 52 to 53
} else if (common.isAIX) {
console.log('1..0 # Skipped: test runner without specifying files fails on AIX');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this should also be a skip.

Comment on lines 8 to 10
if (common.hasCrypto) {
console.log('1..0 # Skipped: no crypto');
process.exit(0);
common.skip('no crypto');
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcollina do you remember the context for this? I can't tell why crypto has any influence on this test, and the logic also appears the wrong way round?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened #62026 to investigate. It looks like the test runner attempts to open the .so files when building with shared OpenSSL, which would be a bug

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.73%. Comparing base (2ae6d8f) to head (356972a).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62020      +/-   ##
==========================================
- Coverage   89.74%   89.73%   -0.01%     
==========================================
  Files         676      676              
  Lines      206072   206069       -3     
  Branches    39507    39524      +17     
==========================================
- Hits       184936   184923      -13     
- Misses      13303    13319      +16     
+ Partials     7833     7827       -6     

see 46 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. benchmark Issues and PRs related to the benchmark subsystem. buffer Issues and PRs related to the buffer subsystem. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants