Disable test_run_module_predicate_throw under miri and support rustc < 1.83

This commit is contained in:
Emilie Burgun
2025-02-06 10:37:54 +01:00
parent 22538a05be
commit d4bf52e82c

View 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));
}
}