mirror of
https://github.com/uutils/awk.git
synced 2026-06-10 16:15:04 -07:00
tests: fix CI
This commit is contained in:
+1
-1
@@ -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)))
|
||||
}
|
||||
|
||||
|
||||
@@ -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 }")
|
||||
|
||||
Reference in New Issue
Block a user