. "$srcdir"/tests/test-common.sh
create_sandbox
+# Suppress test-only commands:
+cat >>$econfig <<EOF
+running_test_suite 0
+EOF
+
+# begin_test warns POSIX isn't expected to work, because thread
+# scheduling isn't reliably deterministic. Not an issue for this
+# test, so suppress the warning.
+[ "$empthread" = POSIX ] && warn_empthread=
begin_test <<EOF
add 1 1 1 p
end_test
-if perl $srcdir/tests/info/cmp-toc-vs-lists.pl info/toc sandbox/*.list
+if perl $testdir/cmp-toc-vs-lists.pl info/toc sandbox/*.list
then echo "Command documentation OK"
else echo "Command documentation FAIL"; false
fi