libqb/tests/resources.test
Angus Salkeld 77b6e15a85 Consistently prepend "qb-" to files in /dev/shm
Dietmar: can you confirm this works for you?

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-06-20 16:36:26 +10:00

20 lines
273 B
Bash
Executable File

#!/bin/bash
RETURN=0
ls /dev/shm/qb-test* 2>/dev/null
if [ $? -eq 0 ]
then
echo
echo "Error: shared memory segments not closed/unlinked"
echo
RETURN=1
fi
ps aux | grep -v grep | grep lt-check
if [ $? -eq 0 ]
then
echo "test program frozen"
RETURN=1
fi
exit $RETURN