-
Notifications
You must be signed in to change notification settings - Fork 196
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
[FEA]: Add support for tests that compile, but fail at runtime #417
Labels
feature request
New feature or request.
Comments
2 tasks
Could we use https://llvm.org/docs/TestingGuide.html#constraining-test-execution |
Exactly.
…________________________________
From: Jake Hemstad ***@***.***>
Sent: Thursday, September 7, 2023 10:51 PM
To: NVIDIA/cccl ***@***.***>
Cc: Allard Hendriksen ***@***.***>; Author ***@***.***>
Subject: Re: [NVIDIA/cccl] [FEA]: Add support for tests that compile, but fail at runtime (Issue #417)
Ah, I suppose the difference is that you want to assert that it compiles successfully and fails during execution. @wmaxey<https://github.com/wmaxey> or @miscco<https://github.com/miscco> would need to confirm, but I think XFAIL will "succeed" even if it fails to compile.
—
Reply to this email directly, view it on GitHub<#417 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA72YFRRBTZH6DFAJG2D4FDXZIXWDANCNFSM6AAAAAA4POAK6A>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
-----------------------------------------------------------------------------------
NVIDIA GmbH
Wuerselen
Amtsgericht Aachen
HRB 8361
Managing Directors: Michael Ching, Donald Robertson, Rebecca Peters and Ludwig von Reiche
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a duplicate?
Area
libcu++
Is your feature request related to a problem? Please describe.
In review, an additional test was requested that should compile successfully, but fails at runtime.
Originally posted by @gonzalobg in #358 (review)
Describe the solution you'd like
Add
.runfail.cpp
test type that is tested to compile correctly and to fail at runtime.Describe alternatives you've considered
Naively, ff you want to test for success, you can also test for failure. There is one case where this is not true though and that is when we want the code to correctly assert when preconditions are not met.
Additional context
No response
The text was updated successfully, but these errors were encountered: