Disable test_run_module_predicate_throw under miri and support rustc < 1.83
This commit is contained in:
@@ -1272,18 +1272,17 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(miri, ignore)]
|
||||||
fn test_run_module_predicate_throw() {
|
fn test_run_module_predicate_throw() {
|
||||||
let mut machine = MachineBuilder::default()
|
let mut machine = MachineBuilder::default()
|
||||||
.with_toplevel(
|
.with_toplevel(
|
||||||
r#"
|
r#"
|
||||||
:- module('$toplevel', []).
|
:- module('$toplevel', []).
|
||||||
repl :- throw(kaboom).
|
repl :- throw(kaboom).
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let query = machine.run_module_predicate(atom!("$toplevel"), (atom!("repl"), 0));
|
machine.run_module_predicate(atom!("$toplevel"), (atom!("repl"), 0));
|
||||||
|
|
||||||
assert_eq!(query, std::process::ExitCode::SUCCESS);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user