-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
test: Skip intl-no-icu-data test when not (Intl and smallICU) #12226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The --icu-data-dir flag applies only when the code was originally compiled with --with-intl=small-icu.
I don't think these changes are sufficient for the case without intl ( |
@richardlau Since the skip condition in the PR is
having |
@evantorrie but that won't get executed because the test runner appends |
@richardlau Ah yes, you're correct. In my particular case, the requirement was to skip the test when To fix the case for --with-intl=none, I guess we'd have to change the actual test runner python script? |
Either that or the test would have to be rewritten to not use cc @nodejs/testing |
I think the "rewrite the test to use a child process" option will work much better than the "rewrite the test runner". |
If you want to go down the modifying the test runner route, #12485 is doing something similar for openssl options. |
common.skip('not (Intl AND SmallICU)'); | ||
return; | ||
} | ||
assert.deepStrictEqual(Intl.NumberFormat.supportedLocalesOf('en'), []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I think Intl.NumberFormat.supportedLocalesOf('en')
with empty icu dir should be []
anyway.
#13053 makes a bad |
The --icu-data-dir flag applies only when the code was originally
compiled with --with-intl=small-icu. Skip the test in all other cases
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test
Fixes: #12198