]> Repositorios git - scryer-prolog.git/commitdiff
Disable test_run_module_predicate_throw under miri and support rustc < 1.83
authorEmilie Burgun <[email protected]>
Thu, 6 Feb 2025 09:37:54 +0000 (10:37 +0100)
committerEmilie Burgun <[email protected]>
Thu, 6 Feb 2025 09:37:54 +0000 (10:37 +0100)
src/machine/mod.rs

index cbd99c531a31ab864533bac8e86abfb1d5ebd31a..bfa4f7b0599042251d3e6fc7c34c7cc600dac388 100644 (file)
@@ -1272,18 +1272,17 @@ mod tests {
     use super::*;
 
     #[test]
+    #[cfg_attr(miri, ignore)]
     fn test_run_module_predicate_throw() {
         let mut machine = MachineBuilder::default()
             .with_toplevel(
                 r#"
-            :- module('$toplevel', []).
-            repl :- throw(kaboom).
-        "#,
+                    :- module('$toplevel', []).
+                    repl :- throw(kaboom).
+                "#,
             )
             .build();
 
-        let query = machine.run_module_predicate(atom!("$toplevel"), (atom!("repl"), 0));
-
-        assert_eq!(query, std::process::ExitCode::SUCCESS);
+        machine.run_module_predicate(atom!("$toplevel"), (atom!("repl"), 0));
     }
 }