$ bats_test='rm.bats'
$ cd "$build_dir/bats/test"
$ BUILD_DIR=.. "../../../bats/$bats_test"
Set the CK_FORK=no
variable to stop the libcheck
library from
forking as that will confound debugging failing tests.
$ make utils-test
$ arch=$(uname -m)
$ CK_FORK=no gdb "builddir/arch/${arch}/src/utils/test-utils"