From a4dc4fbcc1b131061dcccd5cdcc2395d9a2ba784 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 15:17:26 +0200 Subject: Adding upstream version 23.7. Signed-off-by: Daniel Baumann --- testsuite/pslog.test/pslog.exp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 testsuite/pslog.test/pslog.exp (limited to 'testsuite/pslog.test/pslog.exp') diff --git a/testsuite/pslog.test/pslog.exp b/testsuite/pslog.test/pslog.exp new file mode 100644 index 0000000..b8d0e01 --- /dev/null +++ b/testsuite/pslog.test/pslog.exp @@ -0,0 +1,19 @@ +# +# Testsuite for pslog +# + +set pslog "${topdir}src/pslog" +set fake_pid "27000" + +set test "pslog with no arguments" +spawn $pslog +expect_pass "$test" "^Usage: pslog PID\\.\\.\\." + +set test "pslog pid not found" +if { [ file exists "/proc/$fake_pid" ] } { + untested "$test (PID exists)" +} else { + spawn $pslog ${fake_pid} + expect_pass "$test" "opendir: No such file or directory" +} + -- cgit v1.2.3