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

29
test/issues/732/CT_001.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
TESTNAME=CT_001
tgt_file=maps
fail=0
. ./config
echo "*** ${TESTNAME} start ***************************"
${MCEXEC} cat -v /proc/self/${tgt_file} | tee ./${TESTNAME}.log
tail -1 ${TESTNAME}.log | grep -e "\^@$"
if [ $? != 0 ]; then
echo "[OK] end of /proc/<PID>/${tgt_file} is not NULL character"
else
echo "[NG] end of /proc/<PID>/${tgt_file} is unnecessary NULL character"
fail=1
fi
rm ./${TESTNAME}.log
if [ X${fail} != X0 ]; then
echo "*** ${TESTNAME} FAILED"
else
echo "*** ${TESTNAME} PASSED"
fi
echo ""