Skip to content

Commit bae859c

Browse files
committed
test: disable logger to ignore monomorphization errors
Ref: #14
1 parent 6eed0b7 commit bae859c

File tree

4 files changed

+3
-56
lines changed

4 files changed

+3
-56
lines changed

tests/snapshots.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ use pretty_assertions::assert_eq;
55
use std::fs::{copy, remove_file};
66

77
fn cmd(args: &[&str]) -> String {
8-
let output = Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap().args(args).output().unwrap();
8+
let mut command = Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap();
9+
command.env("RUST_LOG", "off").args(args);
10+
let output = command.output().unwrap();
911
assert!(
1012
output.status.success(),
1113
"Failed to test standard_proof.rs:\n{}",

tests/snapshots/contract1.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
2025-04-13T14:06:14.917736Z ERROR all_local_items{item=CrateItem(DefId { id: 1, name: "verify::contract::kani_register_contract" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
2-
2025-04-13T14:06:14.918161Z ERROR all_local_items{item=CrateItem(DefId { id: 3, name: "verify::contract::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
3-
2025-04-13T14:06:14.918484Z ERROR all_local_items{item=CrateItem(DefId { id: 5, name: "verify::contract::{closure#0}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
4-
2025-04-13T14:06:14.918740Z ERROR all_local_items{item=CrateItem(DefId { id: 6, name: "verify::contract::{closure#0}::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
5-
2025-04-13T14:06:14.918996Z ERROR all_local_items{item=CrateItem(DefId { id: 7, name: "verify::contract::{closure#0}::{closure#1}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
6-
2025-04-13T14:06:14.919252Z ERROR all_local_items{item=CrateItem(DefId { id: 8, name: "verify::contract::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
7-
2025-04-13T14:06:14.919505Z ERROR all_local_items{item=CrateItem(DefId { id: 9, name: "verify::contract::{closure#2}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
8-
2025-04-13T14:06:14.919760Z ERROR all_local_items{item=CrateItem(DefId { id: 10, name: "verify::contract::{closure#2}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
9-
2025-04-13T14:06:14.920014Z ERROR all_local_items{item=CrateItem(DefId { id: 11, name: "verify::contract::{closure#3}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
10-
2025-04-13T14:06:14.920268Z ERROR all_local_items{item=CrateItem(DefId { id: 12, name: "verify::contract::{closure#3}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
111
[
122
{
133
"hash": "929236091286910200016542852190015891876",

tests/snapshots/contract2.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
2025-04-13T14:06:15.274479Z ERROR all_local_items{item=CrateItem(DefId { id: 1, name: "verify::contract::kani_register_contract" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
2-
2025-04-13T14:06:15.274946Z ERROR all_local_items{item=CrateItem(DefId { id: 3, name: "verify::contract::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
3-
2025-04-13T14:06:15.275367Z ERROR all_local_items{item=CrateItem(DefId { id: 5, name: "verify::contract::{closure#0}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
4-
2025-04-13T14:06:15.275750Z ERROR all_local_items{item=CrateItem(DefId { id: 6, name: "verify::contract::{closure#0}::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
5-
2025-04-13T14:06:15.276073Z ERROR all_local_items{item=CrateItem(DefId { id: 7, name: "verify::contract::{closure#0}::{closure#1}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
6-
2025-04-13T14:06:15.276378Z ERROR all_local_items{item=CrateItem(DefId { id: 8, name: "verify::contract::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
7-
2025-04-13T14:06:15.276685Z ERROR all_local_items{item=CrateItem(DefId { id: 9, name: "verify::contract::{closure#2}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
8-
2025-04-13T14:06:15.276992Z ERROR all_local_items{item=CrateItem(DefId { id: 10, name: "verify::contract::{closure#2}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
9-
2025-04-13T14:06:15.277299Z ERROR all_local_items{item=CrateItem(DefId { id: 11, name: "verify::contract::{closure#3}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
10-
2025-04-13T14:06:15.277605Z ERROR all_local_items{item=CrateItem(DefId { id: 12, name: "verify::contract::{closure#3}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
11-
2025-04-13T14:06:15.278070Z ERROR all_local_items{item=CrateItem(DefId { id: 15, name: "verify::g::kani_register_contract" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
12-
2025-04-13T14:06:15.278461Z ERROR all_local_items{item=CrateItem(DefId { id: 17, name: "verify::g::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
13-
2025-04-13T14:06:15.278894Z ERROR all_local_items{item=CrateItem(DefId { id: 19, name: "verify::g::{closure#0}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
14-
2025-04-13T14:06:15.279207Z ERROR all_local_items{item=CrateItem(DefId { id: 20, name: "verify::g::{closure#0}::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
15-
2025-04-13T14:06:15.279514Z ERROR all_local_items{item=CrateItem(DefId { id: 21, name: "verify::g::{closure#0}::{closure#1}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
16-
2025-04-13T14:06:15.279823Z ERROR all_local_items{item=CrateItem(DefId { id: 22, name: "verify::g::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
17-
2025-04-13T14:06:15.280122Z ERROR all_local_items{item=CrateItem(DefId { id: 23, name: "verify::g::{closure#2}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
18-
2025-04-13T14:06:15.280437Z ERROR all_local_items{item=CrateItem(DefId { id: 24, name: "verify::g::{closure#2}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
19-
2025-04-13T14:06:15.280741Z ERROR all_local_items{item=CrateItem(DefId { id: 25, name: "verify::g::{closure#3}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
20-
2025-04-13T14:06:15.281040Z ERROR all_local_items{item=CrateItem(DefId { id: 26, name: "verify::g::{closure#3}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
211
[
222
{
233
"hash": "160785969163118787202231336083974075582",

tests/snapshots/standard_proofs_with_contracts.json

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
2025-04-13T13:32:41.380908Z ERROR all_local_items{item=CrateItem(DefId { id: 1, name: "verify::contract_requires::kani_register_contract" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
2-
2025-04-13T13:32:41.381273Z ERROR all_local_items{item=CrateItem(DefId { id: 3, name: "verify::contract_requires::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
3-
2025-04-13T13:32:41.381593Z ERROR all_local_items{item=CrateItem(DefId { id: 5, name: "verify::contract_requires::{closure#0}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
4-
2025-04-13T13:32:41.381847Z ERROR all_local_items{item=CrateItem(DefId { id: 6, name: "verify::contract_requires::{closure#0}::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
5-
2025-04-13T13:32:41.382101Z ERROR all_local_items{item=CrateItem(DefId { id: 7, name: "verify::contract_requires::{closure#0}::{closure#1}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
6-
2025-04-13T13:32:41.382355Z ERROR all_local_items{item=CrateItem(DefId { id: 8, name: "verify::contract_requires::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
7-
2025-04-13T13:32:41.382607Z ERROR all_local_items{item=CrateItem(DefId { id: 9, name: "verify::contract_requires::{closure#2}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
8-
2025-04-13T13:32:41.382860Z ERROR all_local_items{item=CrateItem(DefId { id: 10, name: "verify::contract_requires::{closure#2}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
9-
2025-04-13T13:32:41.383112Z ERROR all_local_items{item=CrateItem(DefId { id: 11, name: "verify::contract_requires::{closure#3}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
10-
2025-04-13T13:32:41.383365Z ERROR all_local_items{item=CrateItem(DefId { id: 12, name: "verify::contract_requires::{closure#3}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
11-
2025-04-13T13:32:41.383732Z ERROR all_local_items{item=CrateItem(DefId { id: 15, name: "verify::contract_ensures::kani_register_contract" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
12-
2025-04-13T13:32:41.384194Z ERROR all_local_items{item=CrateItem(DefId { id: 17, name: "verify::contract_ensures::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
13-
2025-04-13T13:32:41.384510Z ERROR all_local_items{item=CrateItem(DefId { id: 19, name: "verify::contract_ensures::{closure#0}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
14-
2025-04-13T13:32:41.384763Z ERROR all_local_items{item=CrateItem(DefId { id: 20, name: "verify::contract_ensures::{closure#0}::{closure#0}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
15-
2025-04-13T13:32:41.385015Z ERROR all_local_items{item=CrateItem(DefId { id: 21, name: "verify::contract_ensures::{closure#0}::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
16-
2025-04-13T13:32:41.385268Z ERROR all_local_items{item=CrateItem(DefId { id: 22, name: "verify::contract_ensures::{closure#0}::{closure#1}::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
17-
2025-04-13T13:32:41.385521Z ERROR all_local_items{item=CrateItem(DefId { id: 23, name: "verify::contract_ensures::{closure#0}::{closure#1}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
18-
2025-04-13T13:32:41.385773Z ERROR all_local_items{item=CrateItem(DefId { id: 24, name: "verify::contract_ensures::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
19-
2025-04-13T13:32:41.386025Z ERROR all_local_items{item=CrateItem(DefId { id: 25, name: "verify::contract_ensures::{closure#1}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
20-
2025-04-13T13:32:41.386277Z ERROR all_local_items{item=CrateItem(DefId { id: 26, name: "verify::contract_ensures::{closure#2}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
21-
2025-04-13T13:32:41.386530Z ERROR all_local_items{item=CrateItem(DefId { id: 27, name: "verify::contract_ensures::{closure#2}::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
22-
2025-04-13T13:32:41.386783Z ERROR all_local_items{item=CrateItem(DefId { id: 28, name: "verify::contract_ensures::{closure#2}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
23-
2025-04-13T13:32:41.387035Z ERROR all_local_items{item=CrateItem(DefId { id: 29, name: "verify::contract_ensures::{closure#3}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
24-
2025-04-13T13:32:41.387365Z ERROR all_local_items{item=CrateItem(DefId { id: 30, name: "verify::contract_ensures::{closure#3}::{closure#0}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
25-
2025-04-13T13:32:41.387628Z ERROR all_local_items{item=CrateItem(DefId { id: 31, name: "verify::contract_ensures::{closure#3}::{closure#1}" })}: distributed_verification::functions: err=Error("Item requires monomorphization")
261
[
272
{
283
"hash": "38388116086344195076038794296078111723",

0 commit comments

Comments
 (0)