tests: fix CI

This commit is contained in:
Guillem L. Jara
2026-05-07 14:44:22 +02:00
parent 18d5de2ffe
commit 35cf75424c
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ fn parse<'a, T: Debug>(
) -> super::Result<String> {
let mut parser = Parser::new(arena);
parser
.parse_top(&mut Lexer::new(source.as_bytes()), true)
.parse_top(&mut Lexer::new(source.as_bytes(), arena), true)
.map(|x| format!("{:?}", selector(x)))
}
+2 -3
View File
@@ -22,9 +22,8 @@ fn write_to_dev_full_does_not_panic() {
use std::fs::OpenOptions;
use std::process::{Command, Stdio};
let dev_full = match OpenOptions::new().write(true).open("/dev/full") {
Ok(f) => f,
Err(_) => return, // /dev/full not available; skip.
let Ok(dev_full) = OpenOptions::new().write(true).open("/dev/full") else {
return; // /dev/full not available; skip.
};
let output = Command::new(super::TESTS_BINARY)
.arg("BEGIN { print 1 }")