Skip to content

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

Open
@dabrahams

Description

@dabrahams

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions