-
Notifications
You must be signed in to change notification settings - Fork 222
conversions CustomConversionsTest skip fp_sat_xxx #2428
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
base: main
Are you sure you want to change the base?
Conversation
719f353 to
0abd58b
Compare
|
LGTM |
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.
I think this is fine, but when I run the conversions test suite I don't see any difference in the number of tests that are run.
I'm only running the "wimpy" tests, and only on scalars so the tests run faster, but I don't think this should matter? For completeness my command line is:
./test_conformance/conversions/test_conversions -w -1
If the same tests are run before and after this change then what does it do exactly? Thanks!
|
If run ./test_conversions fp_sat_xxx , the test result is always pass. for example: |
svenvh
left a comment
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.
If the same tests are run before and after this change then what does it do exactly?
The current code structure has the running logic sort of duplicated: one version (ConversionsTest) for running all conversions known to the CTS and another version (CustomConversionsTest) for running specific tests specified on the command line. This patch only affects the filtering for the latter. You can observe the effect of this patch by running e.g. test_conversions float_sat_char before and after the patch.
I'm not sure if silently ignoring the invalid conversion is desirable here, though. Wouldn't it be better to give an error if the user specifies an invalid conversion?
related #2427