Skip to content

Tests show as passing even if they do not complete before the stop time #902

@stevenengler

Description

@stevenengler

Describe the issue
If the test takes longer than the stop time, or if the test gets stuck, Shadow will eventually kill the process but still return 0 as the exit code. This causes ctest to think that the test passed, even though it didn't complete.

To Reproduce
Run a test with a blocking call and a timeout. For example, run a test that calls sleep(10); but with <kill time="5"/>.

Shadow (please complete the following information):

  • Version: post the output of shadow --version
    The dev branch as of at least 17b9e45430c06.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: TestingUnit and integration tests and frameworksType: BugError or flaw producing unexpected results

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions