Thanks Jin. Tested and merged. See results below:

===========================
Pre-Patching
===========================
<<<test_start>>>
tag=semaphore_test_01 stime=1218707369
cmdline="             semaphore_test_01"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
incrementing stop
<<<execution_status>>>
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=0
<<<test_end>>>
===========================
Post-Patching
===========================
Running tests.......
semaphore_test_01    0  INFO  :  Created semaphore ID: 5144579
<<<test_start>>>
tag=semaphore_test_01 stime=1218707689
cmdline="              run_semaphore_test_01.sh"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
incrementing stop
semaphore_test_01    1  PASS  :  semaphore ID comparing passed.
semaphore_test_01    0  INFO  :  CLOSE: exit.
<<<execution_status>>>
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=1 cstime=0
<<<test_end>>>


Running tests.......
semaphore_test_01    0  INFO  :  Created semaphore ID: 5177347
<<<test_start>>>
tag=semaphore_test_01 stime=1218707714
cmdline="              run_semaphore_test_01.sh"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
incrementing stop
semaphore_test_01    1  PASS  :  semaphore ID comparing passed.
semaphore_test_01    0  INFO  :  CLOSE: exit.
<<<execution_status>>>
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=2
<<<test_end>>>

Regards--
Subrata

On Thu, 2008-08-14 at 16:48 +0800, Jin Bing Guo wrote:
> 1> First, there's a trivial patch for semaphore_test_01. see
> attachment "Fix_semaphore_test_01.patch".
> 
> (See attached file: Fix_semaphore_test_01.patch)
> 
> 
> 2> Second, in semaphore_test_01 case, it wanted to create a semaphore
> and printed out the semaphore ID for comparison with the output of the
> 'ipcs -s' command. So it didn't remove the semaphore when exit. 
> -------------
> # ipcs -s
> 
> ------ Semaphore Arrays --------
> key semid owner perms nsems
> 
> #./ltp-full-20080731.orig/testcases/kernel/ipc/ipc_stress/semaphore_test_01 
> 3768320
> # ipcs -s
> 
> ------ Semaphore Arrays --------
> key semid owner perms nsems 
> 0x00000000 3768320 root 660 1 
> --------------
> 
> Since the resource of semaphore is limited. It's better to write a
> shell script to perform the comparison and remove the semaphore.
> I wrote the bash script
> "testcases/kernel/ipc/ipc_stress/run_semaphore_test_01.sh", and
> patched the "Makefile" and "runtest/ipc" to run the script.
> 
> Please clean the semaphore up post patching and before executing
> tests.
> ===========
> After paching
> ===========
> <<<test_start>>>
> tag=semaphore_test_01 stime=1218698204
> cmdline="       run_semaphore_test_01.sh"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> semaphore_test_01    0  INFO  :  Created semaphore ID: 3866624
> semaphore_test_01    1  PASS  :  semaphore ID comparing passed.
> semaphore_test_01    0  INFO  :  CLOSE: exit.
> <<<execution_status>>>
> duration=0 termination_type=exited termination_id=0 corefile=no
> cutime=0 cstime=1
> <<<test_end>>>
> 
> # ipcs -s
> 
> ------ Semaphore Arrays --------
> key        semid      owner      perms      nsems 
> 
> 
> 
> (See attached file: run_semaphore_test_01.sh)(See attached file:
> semaphore_test_01_Makefile.patch) (See attached file:
> semaphore_test_01_runtest_ipc.patch)
> 
> 
> Best regards!
> 
> Jin Bing Guo 郭晋兵
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ Ltp-list mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/ltp-list


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to