Skip to content

compiletest doesn't check cargo-kani's exit status #1895

Open

Description

@tedinski

Currently cargo-kani tests can fail because they're basically identical to expected tests which don't check exit status.

Not as simple as adding the test for exit status because several seem to fail:

    [cargo-kani] cargo-kani/asm/global_error/doesnt_call_crate_with_global_asm.expected
    [cargo-kani] cargo-kani/rectangle-example/stretched_rectangle_can_hold_original.expected
    [cargo-kani] cargo-kani/simple-extern/test_sum.expected
    [cargo-kani] cargo-kani/simple-main/main.expected
    [cargo-kani] cargo-kani/simple-proof-annotation/expected
    [cargo-kani] cargo-kani/simple-proof-annotation/main.expected
    [cargo-kani] cargo-kani/simple-unwind-annotation/expected
    [cargo-kani] cargo-kani/simple-unwind-annotation/harness_1.expected
    [cargo-kani] cargo-kani/vecdeque-cve/abstract_reserve_maintains_invariant_with_cve.expected
    [cargo-kani] cargo-kani/vecdeque-cve/minimal_example_with_cve_should_fail.expected
    [cargo-kani] cargo-kani/vecdeque-cve/reserve_available_capacity_should_fail.expected
    [cargo-kani] cargo-kani/ws-specified/expected

Activity

  1. added
    [C] Internal
    on Nov 14, 2022
  2. tedinski commented on Nov 14, 2022

    @tedinski
    ContributorAuthor

    cargo-kani/simple-extern/test_sum.expected is a miss, this test should succeed, but is now failing because of MIR linker changes.

  3. added theissue type on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] Internal

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions