From e3be059d4da38aa36f1aee1d56f8ceb943d92f1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 22:34:44 +0200 Subject: Adding upstream version 2:4.0.4. Signed-off-by: Daniel Baumann --- testsuite/lib.test/fileutils.exp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 testsuite/lib.test/fileutils.exp (limited to 'testsuite/lib.test/fileutils.exp') diff --git a/testsuite/lib.test/fileutils.exp b/testsuite/lib.test/fileutils.exp new file mode 100644 index 0000000..3eaf654 --- /dev/null +++ b/testsuite/lib.test/fileutils.exp @@ -0,0 +1,19 @@ +# +# Testsuite for lib/fileutils program +# + +set noarg "${topdir}src/tests/test_fileutils" + +set test "without argument" +spawn $noarg +expect_pass "$test" "Hello, World!" + +set badfd "${srcdir}/lib.test/fileutils_badfd.sh" +set test "test bad file descriptor" +spawn $badfd +expect_pass "$test" "test_fileutils: write error: Bad file descriptor" + +set full "${srcdir}/lib.test/fileutils_full.sh" +set test "test no space left on device" +spawn $full +expect_pass "$test" "test_fileutils: write error: No space left on device" -- cgit v1.2.3