Skip to content

Commit

Permalink
nix: Re-enable panicking tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Nov 14, 2024
1 parent d6d2b48 commit 273a635
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions hacking/nix/scope/world/instances/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ in rec {
tests.root-task.config
tests.root-task.tls
tests.root-task.backtrace
# tests.root-task.panicking
tests.root-task.panicking
tests.root-task.c
tests.root-task.verus
tests.root-task.dafny
Expand Down Expand Up @@ -192,19 +192,21 @@ in rec {
(_: allocFeatures:
lib.flip lib.mapAttrs profile
(_: release:
maybe (haveFullRuntime && haveUnwindingSupport) (mkInstance {
rootTask = mkTask {
rootCrate = crates.tests-root-task-panicking;
inherit release;
features = allocFeatures ++ [ "panic-${panicStrategyName}" ];
extraProfile = {
panic = panicStrategyName;
let
isUnwind = panicStrategyName == "unwind";
in
maybe (haveFullRuntime && haveUnwindingSupport) (mkInstance {
rootTask = mkTask {
rootCrate = crates.tests-root-task-panicking;
targetTriple = mkSeL4RustTargetTriple { unwind = isUnwind; };
inherit release;
features = allocFeatures ++ [ "panic-${panicStrategyName}" ];
};
};
extraPlatformArgs = lib.optionalAttrs canSimulate {
canAutomateSimply = panicStrategyName == "unwind";
};
}))));
extraPlatformArgs = lib.optionalAttrs canSimulate {
canAutomateSimply = isUnwind;
};
})
)));

paths = lib.mapCartesianProduct
({ panicStrategyName, allocName, profileName }: [ panicStrategyName allocName profileName ])
Expand Down

0 comments on commit 273a635

Please sign in to comment.