From: pravin <pr...@li...> - 2008-05-09 13:23:40
|
Hi Carmelo, I have observed a failure for test fork09 in the ltp when called through shell script using eval command. I am using LTP version ltp-full-20071231. Subrata has told me that, your patch dated "Thu Oct 4 16:46:50 2007 UTC" is the last change on fork09 test. There seems to be change in the way we define OPEN_MAX variable, and I doubt, if this is causing the failure. Please see below sample fork09_failure.sh to reproduce the problem fork09_failure.sh:- ============ #!/bin/sh echo "Begin test script" echo "abort01 ulimit -c 1024;abort01" > /opt/fiv/ltp/runtest/my-tests echo "fork01 fork01" >> /opt/fiv/ltp/runtest/my-tests echo "fork02 fork02" >> /opt/fiv/ltp/runtest/my-tests echo "fork03 fork03" >> /opt/fiv/ltp/runtest/my-tests echo "fork04 fork04" >> /opt/fiv/ltp/runtest/my-tests echo "fork05 fork05" >> /opt/fiv/ltp/runtest/my-tests echo "fork06 fork06" >> /opt/fiv/ltp/runtest/my-tests echo "fork07 fork07" >> /opt/fiv/ltp/runtest/my-tests echo "fork08 fork08" >> /opt/fiv/ltp/runtest/my-tests echo "fork09 fork09" >> /opt/fiv/ltp/runtest/my-tests echo "fork10 fork10" >> /opt/fiv/ltp/runtest/my-tests echo "fork11 fork11" >> /opt/fiv/ltp/runtest/my-tests exec 5<> /tmp/thisisdummyfile cmdstr="/opt/fiv/ltp/runltp -d /tmp -p -f my-tests -l mytest.log -o /tmp/mytest.out" (eval $cmdstr 5>&-; echo "Extra Message") #fork09 test fail (eval $cmdstr ; echo "Extra Message") #fork09 test pass echo "End of script" Error Message is, <<<test_start>>> tag=fork09 stime=1210334257 cmdline="fork09" contacts="" analysis=exit initiation_status="ok" <<<test_output>>> fork09 0 INFO : OPEN_MAX is 1024 fork09 0 INFO : first file descriptor is 5 fork09 1 BROK : Parent: cannot open file 1023 file1023.30262 errno = 24 fork09 0 WARN : tst_rmdir(): rmobj(/tmp/ltp-29065/forlRlYJb) failed: rmdir(/tmp/ltp-29065/forlRlYJb) failed; errno=39: Directory not empty <<<execution_status>>> duration=0 termination_type=exited termination_id=6 corefile=no cutime=0 cstime=4 <<<test_end>>> Could you confirm whether it's fork09 testcase issue. Please let me know if you need any more information. Thank you, Regards, -- Pravin |