Use printf instead of w in PTY test for easier cross-platform support

This commit is contained in:
Marcin Kulik
2024-04-20 14:23:46 +02:00
parent 26ed7e5793
commit 2b4f96e19a
2 changed files with 1 additions and 2 deletions

View File

@@ -24,7 +24,6 @@
testDeps = with pkgs; [
python3
procps # provides `w` binary
];
mkDevShell = rust: pkgs.mkShell {

View File

@@ -520,7 +520,7 @@ sys.stdout.write('bar');
let mut recorder = TestRecorder::default();
super::exec(
&["w"],
&["printf", "hello world\n"],
&ExtraEnv::new(),
&mut NullTty::open().unwrap(),
None,