Skip to content

run-pass tests (and possibly others) continue passing when terminated by signal on OSX #10062

Closed
@miselin

Description

@miselin

On OSX (10.9), but the following is possible in a run-pass test, and will result in a "pass":

pub fn main() {
    unsafe { *(0 as *mut int) = 0; }
}

This should generally be fine as there is probably not much of an expectation that tests will segfault, but it's not ideal to be missing segfaults and other such exceptions (SIGFPE perhaps?) in the testsuite.

On an x86_64 Linux system (Ubuntu 12.04 LTS, git master), a segfault does fail the test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions