← Commit list

50120dab4

Denis Vlasenko
Denis Vlasenko
2008-06-05
FAILED Duration: 23s

Subject

added testsuite for printf by Cristian Ionescu-Idbohrn

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

testsuite/printf.tests+27 -0
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+. testing.sh
+
+# Need this in order to not execute shell builtin
+bb="busybox "
+
+# testing "test name" "command" "expected result" "file input" "stdin"
+
+testing "printf produce no further output 1" \
+ "${bb}printf '\c' foo" \
+ "" \
+ "" ""
+
+testing "printf produce no further output 2" \
+ "${bb}printf '%s\c' foo \$HOME" \
+ "foo" \
+ "" ""
+
+testing "printf repeatedly use pattern for each argv" \
+ "${bb}printf '%s\n' foo \$HOME" \
+ "foo\n$HOME\n" \
+ "" ""
+
+exit $FAILCOUNT