I've also added a getdirs test case which passes:
diff --git a/testsuite/runtest.all/utils.test b/testsuite/runtest.all/utils.test
index 107e907..2bf4869 100644
--- a/testsuite/runtest.all/utils.test
+++ b/testsuite/runtest.all/utils.test
@@ -37,6 +37,10 @@ run_tests [subst {
{[file join ${srcdir} runtest.all topdir]}
"*topdir*subdir\[12\]*topdir*subdir\[12\]"
"getdirs toplevel, two subdirs" }
+ { lib_pat_test getdirs
+ {[file join ${srcdir} runtest.all nothere]}
+ ""
+ "getdirs toplevel, non-existent subdir"}
}]
# Test relative_filename: