#!/bin/sh # This tests the fcntl helper, externally configured via ! . "${TEST_SCRIPTS_DIR}/unit.sh" export CTDB_CLUSTER_MUTEX_HELPER="/bin/false" lockfile="${CTDB_TEST_TMP_DIR}/cluster_mutex.lockfile" trap 'rm ${lockfile}' 0 t="${CTDB_SCRIPTS_HELPER_BINDIR}/ctdb_mutex_fcntl_helper" helper="!${t} ${lockfile}" test_case "No contention: lock, unlock" ok <