diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 20:34:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 20:34:44 +0000 |
commit | e3be059d4da38aa36f1aee1d56f8ceb943d92f1c (patch) | |
tree | 26edef31e4e503dd1c92a112de174f366dd61802 /testsuite/lib.test/fileutils.exp | |
parent | Initial commit. (diff) | |
download | procps-e3be059d4da38aa36f1aee1d56f8ceb943d92f1c.tar.xz procps-e3be059d4da38aa36f1aee1d56f8ceb943d92f1c.zip |
Adding upstream version 2:4.0.4.upstream/2%4.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testsuite/lib.test/fileutils.exp')
-rw-r--r-- | testsuite/lib.test/fileutils.exp | 19 |
1 files changed, 19 insertions, 0 deletions
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" |