public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Peng Haitao <penght@cn.fujitsu.com>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v2] ltp-pan.c: fix error of Total Tests
Date: Thu, 17 May 2012 10:47:18 +0800	[thread overview]
Message-ID: <4FB466B6.8060508@cn.fujitsu.com> (raw)
In-Reply-To: <CAGH67wStJk_mqT46zqJ5FPNHLEeBjcyPo6i050xMwmpCm5aoBQ@mail.gmail.com>


Garrett Cooper said the following on 2012-5-17 10:40:
>> You can easily trigger this problem with the following spoofed runtest scenario:
>>
>> aok echo "hello"
>> donotexist donotexist
>> exit_quickly exit 1
>> true true
>>

The test log is as follows:

Running tests.......
<<<test_start>>>
tag=aok stime=1337251363
cmdline="echo "hello""
contacts=""
analysis=exit
<<<test_output>>>
hello
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=donotexist stime=1337251363
cmdline="donotexist"
contacts=""
analysis=exit
<<<test_output>>>
<<<execution_status>>>
initiation_status="pan(17520): execvp of 'donotexist' (tag donotexist) failed.                                                   errno:2  No such file or directory"
duration=0 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=exit_quickly stime=1337251363
cmdline="exit 1"
contacts=""
analysis=exit
<<<test_output>>>
<<<execution_status>>>
initiation_status="pan(17520): execvp of 'exit' (tag exit_quickly) failed.  errn                                                 o:2  No such file or directory"
duration=0 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=true stime=1337251363
cmdline="true"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=0
<<<test_end>>>
INFO: ltp-pan reported all tests PASS
LTP Version: 20120401-38-g3d3e94e

       ###############################################################

            Done executing testcases.
            LTP Version:  20120401-38-g3d3e94e
       ###############################################################


# cat results/LTP_RUN_ON-2012_May_17-18h_42m_42s.log
Test Start Time: Thu May 17 18:42:43 2012
-----------------------------------------
Testcase                       Result     Exit Value
--------                       ------     ----------
aok                            PASS       0
donotexist                     FAIL       2
exit_quickly                   FAIL       2
true                           PASS       0

-----------------------------------------------
Total Tests: 4
Total Failures: 2
Kernel Version: 2.6.32-220.el6.x86_64
Machine Architecture: x86_64
Hostname: RHEL6U2-x86-64


Thanks.

-- 
Best Regards,
Peng Haitao

>> The first will fail success with "hello" output, the second should
> 
> s/fail success/pass/
> 
>> fail with ENOENT, the third will fail without output, and the fourth
>> should success with output.
>>
>> If this functions as I described above, I'll be more than happy to ACK
>> the patch.
>>
>> Thanks!
>> -Garrett
> 
> 



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2012-05-17  2:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4F2CE53D.9030908@cn.fujitsu.com>
2012-05-16 14:53 ` [LTP] [PATCH] ltp-pan.c: fix error of Total Tests Cyril Hrubis
     [not found]   ` <1337219962-5782-1-git-send-email-penght@cn.fujitsu.com>
     [not found]     ` <4FB45E98.3010506@cn.fujitsu.com>
2012-05-17  2:31       ` [LTP] [PATCH v2] " Garrett Cooper
2012-05-17  2:33         ` Wanlong Gao
2012-05-17  2:39           ` Garrett Cooper
2012-05-17  2:40             ` Garrett Cooper
2012-05-17  2:47               ` Peng Haitao [this message]
2012-05-17  4:39                 ` Garrett Cooper
2012-05-17  5:04                   ` Peng Haitao
2012-05-17  5:52                     ` Garrett Cooper
2012-05-17 11:05                       ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FB466B6.8060508@cn.fujitsu.com \
    --to=penght@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=yanegomi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox