bookmarkfs/tests/lib_watcher.at
CismonX 95121cb78f
test: add helper macro ATX_RUN
This is meant to be a workaround for a limitation of Autotest,
where `set -e` has no effect in AT_CHECK().

Also we don't want to use `trap ... ERR`, since it is not portable.
2025-03-05 07:01:34 +08:00

23 lines
529 B
Text

dnl
dnl Copyright (C) 2025 CismonX <admin@cismon.net>
dnl
dnl Copying and distribution of this file, with or without modification,
dnl are permitted in any medium without royalty,
dnl provided the copyright notice and this notice are preserved.
dnl This file is offered as-is, without any warranty.
dnl
AT_SETUP([util lib: file watcher])
AT_KEYWORDS([lib watcher])
ATX_CHECK_LIB([
tmpdir=./$(ath_fn_rand_u64_hex).tmp.d
mkdir $tmpdir
ATX_RUN([
check-util-lib watcher -d $tmpdir
])
])
AT_CLEANUP