Skip to content

tests/exception/t9657 fails on OpenBSD #13760

@euantorano

Description

@euantorano

The test tests/exception/t9657 fails on OpenBSD, as the test exits with exit code 0.

The following C file also exits without any output and a status code of 0:

#include <stdio.h>
#include <string.h>

int main(int argc, char** argv)
{
        char* msg = "exception!";
        int ret = fclose(stdout);

        if (ret != 0) {
                perror("fclose error");
                return 1;
        }

        fwrite(msg, 1, 10, stdout);
        ret = ferror(stdout);

        if (ret != 0) {
                char* errmsg = strerror(ret);
                fprintf(stderr, "fwrite error %d: %s", ret, errmsg);
                return 1;
        }

        return 0;
}

We should probably disable this test for OpenBSD, though it seems odd that this isn't an error in OpenBSD...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions