On Wed, 2008-10-22 at 18:01 +0800, Jin Bing Guo wrote:
> I tested the connectors case on SLES11 beta2 for ppc.
> ---------------
> # uname -a
> Linux venuslp12 2.6.27-rc7-12-ppc64 #1 SMP 2008-09-29 23:39:54 +0200
> ppc64 ppc64 ppc64 GNU/Linux
> # ./runltp -f connectors
> Gnu C                  gcc (SUSE Linux) 4.3.3 20080915 (prerelease)
> [gcc-4_3-branch revision 140371]
> ........
> Running tests.......
> <<<test_start>>>
> tag=Connectors stime=1224665705
> cmdline="connector_test.sh"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> incrementing stop
> unknown option!
> Usage: event_generator -e fork|exit|exec|uid|gid [-n nr_event]
> pec01       1  FAIL  :  failed to generate process events
> unknown option!
> Usage: event_generator -e fork|exit|exec|uid|gid [-n nr_event]
> pec01       2  FAIL  :  failed to generate process events
> unknown option!
> Usage: event_generator -e fork|exit|exec|uid|gid [-n nr_event]
> pec01       3  FAIL  :  failed to generate process events
> unknown option!
> Usage: event_generator -e fork|exit|exec|uid|gid [-n nr_event]
> pec01       4  FAIL  :  failed to generate process events
> unknown option!
> Usage: event_generator -e fork|exit|exec|uid|gid [-n nr_event]
> pec01       5  FAIL  :  failed to generate process events
> <<<execution_status>>>
> duration=10 termination_type=exited termination_id=1 corefile=no
> cutime=3 cstime=5
> <<<test_end>>>
> INFO: pan reported some tests FAIL
> ----------
> 
> It's the getopt() error in connectors/pec/event_generator.c file.
> The type of return value in getopt() is "int", not "char".
> 
> ===============
> After Patching
> ===============
> Running tests.......
> <<<test_start>>>
> tag=Connectors stime=1224666069
> cmdline="connector_test.sh"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> incrementing stop
> pec01       1  PASS  :  get event - fork parent: 4210, child: 4211
> pec01       2  PASS  :  get event - exec pid: 4220
> pec01       3  PASS  :  get event - exit pid: 4230 exit_code: 0
> pec01       4  PASS  :  get event - uid pid: 4239 euid: 65534
> pec01       5  PASS  :  get event - gid pid: 4248 egid: 65533
> <<<execution_status>>>
> duration=10 termination_type=exited termination_id=0 corefile=no
> cutime=4 cstime=7
> <<<test_end>>>
> INFO: pan reported all tests PASS
> 
> 
> Signed-off-by: Jin Bing Guo <[EMAIL PROTECTED]>
> -----
> 
> Thanks,
> -- Jin Bing Guo
> 
> 
> 
> 
> 
> 
> 
> 
> 
> text/x-diff
> attachment
> (Fix_getopt_connectors.patch)
> 
> ---
> cvs_ltp.orig/testcases/kernel/connectors/pec/event_generator.c      
> 2008-06-26 04:35:45.000000000 -0500
> +++
> cvs_ltp/testcases/kernel/connectors/pec/event_generator.c   2008-10-22
> 03:22:31.000000000 -0500
> @@ -148,7 +148,7 @@ static inline void gen_gid(void)
>   */
>  static void process_options(int argc, char **argv)
>  {
> -       char c;
> +       int  c;

Thanks.

Regards--
Subrata

>         char *end;
> 
>         while ((c = getopt(argc, argv, "e:n:h")) != -1) {
> 


-------------------------------------------------------------------------
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