libqb/tests/resources.test
Angus Salkeld e990681826 Fix the test dependancies (and "make rpm")
My first attempt at this broke "make rpm" - oops.
It seems that we need a common extension for tests to get the
dependancies to work.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-05-18 11:11:14 +10:00

20 lines
268 B
Bash
Executable File

#!/bin/bash
RETURN=0
ls /dev/shm/qb* 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