Hi,

Any comments on the following patch?

Thanks,
Peng

Peng Haitao said the following on 2011-8-23 16:07:
> 
> SIGINT should be replaced with SIGTERM, because SIGINT is ignored by "trap '' 
> INT" in bin/run-tests.sh.
> 
> "Test: PASS\n" is replaced with "Test: PASSED\n".
> 
> Signed-off-by: Peng Haitao <[email protected]>
> ---
>  .../conformance/interfaces/sched_yield/1-1.c       |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git 
> a/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c 
> b/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c
> index fa3886a..dd7b452 100644
> --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/1-1.c
> @@ -111,15 +111,15 @@ int main(void)
>       }
>  
>       /* Can only get here if sched_yield works. */
> -     kill(pid, SIGINT);
> +     kill(pid, SIGTERM);
>       waitpid(pid, &s, 0);
>  
>       status = PTS_PASS;
>       if (WIFSIGNALED(s)) {
>               s = WTERMSIG(s);
> -             if (s != SIGINT) {
> +             if (s != SIGTERM) {
>                       printf("Failed: kill signal: %d, should be: %d\n",
> -                                     s, SIGINT);
> +                                     s, SIGTERM);
>                       status = PTS_FAIL;
>               }
>       } else if (WIFEXITED(s)) {
> @@ -129,7 +129,7 @@ int main(void)
>       }
>  
>       if (status == PTS_PASS)
> -             printf("Test: PASS\n");
> +             printf("Test: PASSED\n");
>  
>       return status;
>  }

-- 
Best Regards,
Peng Haitao


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to