From 71d4d6ba05ee79f38ec7a3779a0e5579159b567a Mon Sep 17 00:00:00 2001 From: emma Date: Sat, 17 Aug 2024 01:57:16 -0600 Subject: [PATCH] tests: bonsai/dj.mk, bonsai/rpn.mk: fixes testing on linux --- tests/bonsai/dj.mk | 2 +- tests/bonsai/rpn.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bonsai/dj.mk b/tests/bonsai/dj.mk index bf8adf3..2b4ef6b 100755 --- a/tests/bonsai/dj.mk +++ b/tests/bonsai/dj.mk @@ -19,7 +19,7 @@ dj_tests: dj_help dj_full dj_null # dj_skip_stdin dj_full: $(BIN)/dj /dev/full case "$$(uname)" in \ Linux) \ - $(BIN)/dj -Hi /dev/zero -o /dev/full 2>&1 \ + ! $(BIN)/dj -Hi /dev/zero -o /dev/full 2>&1 \ | tee /dev/stderr \ | xargs -I out test '1+0 > 0+0; 1024 > 0' = out \ ;; \ diff --git a/tests/bonsai/rpn.mk b/tests/bonsai/rpn.mk index 3619692..6fecab9 100755 --- a/tests/bonsai/rpn.mk +++ b/tests/bonsai/rpn.mk @@ -30,7 +30,7 @@ rpn_mul: $(BIN)/rpn .PHONY: rpn_div rpn_div: $(BIN)/rpn test "$$($(BIN)/rpn 12 5 /)" = 2.4 - test "$$($(BIN)/rpn 3 0 /)" -eq inf + test "$$($(BIN)/rpn 3 0 /)" = inf .PHONY: rpn_mod rpn_mod: $(BIN)/rpn