procps/testsuite/lib.test/fileutils.exp
Craig Small 15a0a71406 testsuite: Update the library tests for new location
Signed-off-by: Craig Small <csmall@dropbear.xyz>
2022-08-29 20:40:45 +10:00

20 lines
514 B
Plaintext

#
# 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"