add testcases for #732 #1065 #1102

This commit is contained in:
Ken Sato
2018-06-07 10:11:23 +09:00
parent 139123dc12
commit 9bb48186e6
35 changed files with 1653 additions and 0 deletions

51
test/issues/1102/CT_004.sh Executable file
View File

@ -0,0 +1,51 @@
#!/bin/sh
TESTNAME=CT_004
. ./config
SIG_NAME=SIGINT
SIG_NUM=2
fail=0
echo "*** ${TESTNAME} start *******************"
echo "** exec ostest siginfo_01 and then send ${SIG_NAME} to mcexec"
${MCEXEC} ${OSTEST_DIR}/bin/test_mck -s siginfo -n 1 &
sleep 1
echo "** back ground process(mcexec): $!"
echo "** send ${SIG_NAME} to mcexec once"
kill -${SIG_NUM} $!
sleep 1
echo "** check existing of $!"
ps -p $!
if [ $? = 0 ]; then
echo "[OK] $! exists yet"
else
echo "[NG] $! doesn't exist"
fail=1
fi
echo "** send ${SIG_NAME} to mcexec again"
kill -${SIG_NUM} $!
sleep 1
echo "** check existing of $!"
ps -p $!
if [ $? != 0 ]; then
echo "[OK] $! doesn't exist (be killed by signal)"
else
echo "[NG] exist yet"
fail=1
fi
if [ X$fail = X0 ]; then
echo "*** ${TESTNAME} PASSED"
else
echo "*** ${TESTNAME} FAILED"
fi
echo ""