On Tue, 2008-03-25 at 11:39 +0530, Sridhar Vinay wrote:
> 
> Patch:
> 
> Signed-off-by : Vinay Sridhar <[EMAIL PROTECTED]>

Thanks. This has been Applied.

Regards--
Subrata

> 
> 
>                                                                            
>              Subrata Modak                                                 
>              <[EMAIL PROTECTED]                                             
>              et.ibm.com>                                                To 
>                                        ltp-list                            
>              03/24/2008 09:06          <[email protected]>    
>              PM                                                         cc 
>                                        Sudeesh John/India/[EMAIL PROTECTED],  
>      
>                                        [EMAIL PROTECTED],        
>              Please respond to         Sridhar Vinay/India/[EMAIL PROTECTED], 
>      
>              [EMAIL PROTECTED]         Mohammed Omar/India/[EMAIL PROTECTED]  
>      
>                  t.ibm.com                                         Subject 
>                                        [PATCH] All the syslog test cases   
>                                        in ltp-full-20080131 are failing    
>                                        for RHEL4U5 on x3850 M2             
>                                        architecture                        
>                                                                            
>                                                                            
>                                                                            
>                                                                            
>                                                                            
>                                                                            
> 
> 
> 
> 
> Hi All,
> 
> Please find attached a problem that occurred with all the syslog tests:
> 
> ======================================================================
> Problem description: as reported by Sudeesh John
> ======================================================================
> All the syslog test cases in ltp-full-20080131 are failing for RHEL4U5
> on x3850
> M2 architecture.
> 
> We also checked it with ltp-full-20070630 all the syslog test cases have
> passed.
> 
> 
>        ----Uname -a output -----
> 
> Linux <sniff> #1 SMP Fri Apr 20 16:46:56 EDT 2007 x86_64 x86_64 x86_64
> GNU/Linux
> 
> 
> Machine type: X3850 M2
> 
> The syslog test cases syslog01,03,04,05,06,07,09,10 are failing not all.
> 
> These are the failure messages...:
> 
> <<<test_start>>>
> tag=syslog01 stime=1203016981
> cmdline="syslog01"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> syslog01    0  INFO  :  Send messages to syslogd at some level
> syslog01    0  INFO  :  and facility and grep for those messages.
> syslog01    0  INFO  :  syslog: Testing whether messages are logged into
> log
> file
> 
> Running tests
> syslog01    1  FAIL  :  failed to generate messages
> syslog01    0  INFO  :  restart /etc/init.d/syslog
> <<<execution_status>>>
> duration=6 termination_type=exited termination_id=1 corefile=no
> cutime=1 cstime=6
> <<<test_end>>>
> 
> <<<test_start>>>
> tag=syslog03 stime=1203017033
> cmdline="syslog03"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> syslog03    0  INFO  :  Do openlog(), log the messages and see whether
> syslog03    0  INFO  :  ident string is prepended to the message.
> syslog03    0  INFO  :  syslog: Testing openlog() with ident strings
> 
> Running tests
> syslog03    1  FAIL  :  ident string is not prepended to the mesage.
> syslog03    0  INFO  :  restart /etc/init.d/syslog
> <<<execution_status>>>
> duration=5 termination_type=exited termination_id=1 corefile=no
> cutime=2 cstime=5
> <<<test_end>>>
> <<<test_start>>>
> tag=syslog04 stime=1203017038
> cmdline="syslog04"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> syslog04    0  INFO  :  case4: Test the logging option: LOG_PID
> syslog04    0  INFO  :  Do openlog() with LOG_PID option and see whether
> pid
> syslog04    0  INFO  :  is logged with message.
> syslog04    0  INFO  :  syslog: Testing the log option: LOG_PID...
> Running tests
> syslog04    0  INFO  :  Restart syslog daemon
> syslog04    1  FAIL  :  pid is not logged with message.
> syslog04    0  INFO  :  restart /etc/init.d/syslog
> <<<execution_status>>>
> duration=6 termination_type=exited termination_id=1 corefile=no
> cutime=2 cstime=6
> <<<test_end>>>
> <<<test_start>>>
> tag=syslog05 stime=1203017044
> cmdline="syslog05"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> syslog05    0  INFO  :   case5: Test the logging option: LOG_CONS
> syslog05    0  INFO  :   o Do openlog() with LOG_CONS option.
> syslog05    0  INFO  :   o Disable /dev/syslog by moving it to a temporary
> file
> name.
> syslog05    0  INFO  :   o Send the syslog message.
> syslog05    0  INFO  :   o Check whether this is written to the console i.e
> to
> syslog05    0  INFO  :     the file /usr/adm/ktlog/<this year>/<this
> month>/<to_day>
> syslog05    0  INFO  :  syslog: Testing the log option: LOG_CONS...
> Running tests
> syslog05    1  FAIL  :  write to console failed
> syslog05    0  INFO  :  restart /etc/init.d/syslog
> <<<execution_status>>>
> duration=7 termination_type=exited termination_id=1 corefile=no
> cutime=3 cstime=5
> <<<test_end>>>
> <<<test_start>>>
> tag=syslog06 stime=1203017051
> cmdline="syslog06"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> syslog06    0  INFO  :   Test the logging option: LOG_NDELAY
> syslog06    0  INFO  :   o Do openlog() without LOG_NDELAY option.
> syslog06    0  INFO  :   o open a file and check the returned file
> descriptor
> syslog06    0  INFO  :     It should be 3.
> syslog06    0  INFO  :   o Now do openlog() with LOG_NDELAY option.
> syslog06    0  INFO  :   o open a file and check the returned file
> descriptor.
> syslog06    0  INFO  :     It should be greater than 3.
> syslog06    0  INFO  :  syslog: Testing the log option: LOG_NDELAY...
> 
> Running tests
> syslog06    0  INFO  :  Restart syslog daemon
> syslog06    1  FAIL  :  file descriptor is not greater than 3
> syslog06    0  INFO  :  restart /etc/init.d/syslog
> <<<execution_status>>>
> duration=6 termination_type=exited termination_id=1 corefile=no
> cutime=2 cstime=6
> <<<test_end>>>
> <<<test_start>>>
> tag=syslog07 stime=1203017057
> cmdline="syslog07"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> syslog07    0  INFO  :   Test the priorities
> 
> syslog07    0  INFO  :  syslog: Testing the priorities ...
> 
> 
> syslog07    0  INFO  :  o Add lowest prority level i.e debug level entry to
> syslog07    0  INFO  :    configuration file.
> syslog07    0  INFO  :   o Send syslog messages at all levels and see
> whether
> syslog07    0  INFO  :     Higher level messages are logged.
> Running tests
> syslog07    1  FAIL  :  Higher level messages are not logged.
> syslog07    0  INFO  :  restart syslog
> <<<execution_status>>>
> duration=7 termination_type=exited termination_id=1 corefile=no
> cutime=2 cstime=5
> <<<test_end>>>
> 
> <<<test_start>>>
> tag=syslog09 stime=1203017093
> cmdline="syslog09"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> syslog09    0  INFO  :   Test setlogmask() with LOG_UPTO macro.
> syslog09    0  INFO  :   o Use setlogmask() with LOG_UPTO macro to set some
> 
> priority
> syslog09    0  INFO  :     level.
> syslog09    0  INFO  :   o Send message which is lower priority than the
> one
> syslog09    0  INFO  :     set above, which should not be logged
> syslog09    0  INFO  :  syslog: Testing setlogmask() with LOG_UPTO macro
> 
> Running tests
> syslog09    1  FAIL  :  lower priority message is logged.
> syslog09    0  INFO  :  restart /etc/init.d/syslog
> <<<execution_status>>>
> duration=7 termination_type=exited termination_id=1 corefile=no
> cutime=2 cstime=5
> <<<test_end>>>
> <<<test_start>>>
> tag=syslog10 stime=1203017100
> cmdline="syslog10"
> contacts=""
> analysis=exit
> initiation_status="ok"
> <<<test_output>>>
> syslog10    0  INFO  :   Test setlogmask() with LOG_MASK macro.
> syslog10    0  INFO  :   o Use setlogmask() with LOG_MASK macro to set an
> syslog10    0  INFO  :     individual priority level.
> syslog10    0  INFO  :   o Send the message of above prority and expect it
> to be
> syslog10    0  INFO  :     logged.
> syslog10    0  INFO  :   o Send message which is at other priority level to
> syslog10    0  INFO  :     the one set above, which should not be logged.
> 
> syslog10    0  INFO  :  syslog: Testing setlogmask() with LOG_MASK macro...
> 
> Running tests
> syslog10    1  FAIL  :   setlogmask() with LOG_MASK macro failed
> syslog10    0  INFO  :  restart /etc/init.d/syslog
> <<<execution_status>>>
> duration=6 termination_type=exited termination_id=1 corefile=no
> cutime=3 cstime=6
> <<<test_end>>>
> ======================================================================
> Reply from Supriya Kannery
> ======================================================================
> Sudeesh,
>   The basic syslog command used in these two ltp testsuites
> ltp-full-20080131
> and ltp-full-20070630 are different for all the syslog testcases. For
> example in
> syslog01.c file, following change is done:
> 
>          then
>             CONFIG_FILE="/etc/syslog-ng/syslog-ng.conf"
> -            syslog_cmd="syslog-ng"
> +           syslog_cmd="/etc/init.d/syslog"
>         else
> 
> Will look at the impact of this change in the test results and update
> Thanks, Supriya
> ======================================================================
> Reply from Sridhar Vinay
> ======================================================================
> the syslogtst is failing because when only 1 argument is passed to
> syslogtst the
> condition in the test case fails to deal with it. Will attach the patch
> that
> fixes it after discussing with Sudeesh.
> 
> Patch for syslog test case
> ======================================================================
> Reply from Sudeesh John
> ======================================================================
> I have tested the failed tests cases after applying the patch on the
> same architecture(x3850M2) and found its passing.
> ======================================================================
> Reply from Mohammed Omar
> ======================================================================
> Vinay,
> 
> I too see now ,its passed. After executing syslog02--syslog12 initially,
> then
> syslog01 also passed.
> 
> --thanks for your support
> ======================================================================
> End of Discussion
> ======================================================================
> 
> Regards--
> Subrata
> 
> 
> 
> (See attached file: 24_03_2008-([EMAIL PROTECTED])-syslog.patch)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to