Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 11, 2024
1 parent 23f68ea commit 2171d7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/cargo-kani/simple-extern/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub mod externs;
pub use externs::external_c_assertion;
// TODO: our reachability analysis does not see through C functions
pub use externs::rust_add1;

#[cfg(test)]
mod tests {
Expand All @@ -24,6 +26,7 @@ mod kani_tests {
if a < 100 {
unsafe {
external_c_assertion(a);
rust_add1(a);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/missing-function/extern_c/expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Status: UNREACHABLE\
Status: UNDETERMINED\
Description: "assertion failed: x == 5"
Status: FAILURE\
Description: "Function `missing_function` with missing definition is unreachable"
Expand Down

0 comments on commit 2171d7e

Please sign in to comment.