test: fix test-buffer-tostring-range on allocation failure#58416
Merged
nodejs-github-bot merged 1 commit intoMay 23, 2025
Conversation
If the test cannot allocate a buffer over 4GB, there is no point continue testing toString() on it. This also split the test case to a different file for clarity and reduce interference with other cases.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58416 +/- ##
==========================================
- Coverage 90.22% 90.19% -0.03%
==========================================
Files 635 635
Lines 187171 187171
Branches 36755 36747 -8
==========================================
- Hits 168869 168823 -46
- Misses 11075 11120 +45
- Partials 7227 7228 +1 🚀 New features to boost your workflow:
|
LiviaMedeiros
approved these changes
May 22, 2025
Collaborator
targos
approved these changes
May 22, 2025
lpinca
approved these changes
May 22, 2025
Collaborator
richardlau
approved these changes
May 22, 2025
juanarbol
approved these changes
May 22, 2025
StefanStojanovic
approved these changes
May 23, 2025
Collaborator
|
Landed in e9c6004 |
targos
pushed a commit
that referenced
this pull request
May 31, 2025
If the test cannot allocate a buffer over 4GB, there is no point continue testing toString() on it. This also split the test case to a different file for clarity and reduce interference with other cases. PR-URL: #58416 Fixes: #56726 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
aduh95
pushed a commit
that referenced
this pull request
Jun 10, 2025
If the test cannot allocate a buffer over 4GB, there is no point continue testing toString() on it. This also split the test case to a different file for clarity and reduce interference with other cases. PR-URL: #58416 Fixes: #56726 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
If the test cannot allocate a buffer over 4GB, there is no point continue testing toString() on it.
This also split the test case to a different file for clarity and reduce interference with other cases.
Fixes: #56726