Skip to content
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

Make death tests more portable, including signals on Windows. #4600

Open
dabrahams opened this issue Aug 21, 2024 · 0 comments
Open

Make death tests more portable, including signals on Windows. #4600

dabrahams opened this issue Aug 21, 2024 · 0 comments

Comments

@dabrahams
Copy link

dabrahams commented Aug 21, 2024

Does the feature exist in the most recent commit?

No

Why do we need this feature?

Because I need it, I guess, and you want to serve people like me? If you want to detect SIGABRT on one platform, why wouldn't you want to detect it everywhere possible?

Describe the proposal.

Do something like I've done (as a workaround): define a suite of portable death test macros and make them test as much as possible on whatever platform I'm running on. Detecting abort on Windows in my case involves installing a signal handler that prints a unique string, which you could do less-intrusively upon invocation of the test, chaining to whatever was previously installed, and uninstalling it afterwards.

Is the feature specific to an operating system, compiler, or build system version?

Sort of, depending on how you interpret the question. The point is that the feature can be used without regard to those things.

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

No branches or pull requests

1 participant