Skip to content

Commit

Permalink
nix: Disable unwinding for Verus test
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 28, 2024
1 parent d2486ae commit a48c737
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion crates/private/tests/root-task/verus/task/Cargo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ mk {
dependencies = {
inherit (localCrates)
sel4
sel4-root-task
tests-root-task-verus-core
;
sel4-root-task = localCrates.sel4-root-task // {
default-features = false;
};
};
}
2 changes: 1 addition & 1 deletion crates/private/tests/root-task/verus/task/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ license = "BSD-2-Clause"

[dependencies]
sel4 = { path = "../../../../../sel4" }
sel4-root-task = { path = "../../../../../sel4-root-task" }
sel4-root-task = { path = "../../../../../sel4-root-task", default-features = false }
tests-root-task-verus-core = { path = "../core" }
6 changes: 5 additions & 1 deletion hacking/nix/scope/world/instances/verus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ mkInstance {
rootCrate = crates.tests-root-task-verus-task;
release = false;

verifyWithVerus = true;
extraProfile = {
panic = "abort";
};

layers = [
crateUtils.defaultIntermediateLayer
Expand All @@ -34,6 +36,8 @@ mkInstance {
modifications = seL4Modifications;
}
];

verifyWithVerus = true;
};

extraPlatformArgs = lib.optionalAttrs canSimulate {
Expand Down

0 comments on commit a48c737

Please sign in to comment.