aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-03-28 12:11:22 -0700
committerRob Landley <rob@landley.net>2019-03-28 15:40:31 -0500
commit1201a665bfa6295ef9c0fd2b1a6476e0f0f5d0ac (patch)
treee98be6fde94e9355c74c454df25574c71f31271f
parent6ca648cc1f55eecfde535a7b78b57797b8c227d6 (diff)
downloadtoybox-1201a665bfa6295ef9c0fd2b1a6476e0f0f5d0ac.tar.gz
bc: add a trivial regression test for input from stdin.
A trivial test, but it would have caught the previous bug...
-rw-r--r--tests/bc.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bc.test b/tests/bc.test
index 130e049f..65969b79 100644
--- a/tests/bc.test
+++ b/tests/bc.test
@@ -2,7 +2,7 @@
[ -f testing.sh ] && . testing.sh
-#testing "name" "command" "result" "infile" "stdin"
+#testcmd "name "args" "result" "infile" "stdin"
BDIR="$FILES/bc"
TESTDIR="./"
@@ -37,3 +37,4 @@ run_bc_test misc
run_bc_test misc1
run_bc_test misc2
+testcmd "stdin" "" "2\n" "" "1+1\n"