public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: avagin@gmail.com
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] clock_settime03: improve message about fail
Date: Wed, 18 Nov 2009 18:46:41 -0500	[thread overview]
Message-ID: <200911181846.42873.vapier@gentoo.org> (raw)
In-Reply-To: <4B03F177.1090103@gmail.com>


[-- Attachment #1.1: Type: Text/Plain, Size: 1096 bytes --]

On Wednesday 18 November 2009 08:07:03 Andrew Vagin wrote:
> On 11/13/2009 06:17 PM, Mike Frysinger wrote:
> > On Friday 13 November 2009 02:52:20 Andrew Vagin wrote:
> >> ---
> >>   .../kernel/timers/clock_settime/clock_settime03.c  |    5 +++--
> >>   1 files changed, 3 insertions(+), 2 deletions(-)
> >>
> >> --- a/testcases/kernel/timers/clock_settime/clock_settime03.c
> >> +++ b/testcases/kernel/timers/clock_settime/clock_settime03.c
> >> @@ -195,10 +195,11 @@ main(int ac, char **av)
> >>   			} else {
> >>   				tst_resm(TFAIL, "clock_settime(2) failed to"
> >>   						" produce expected error; %d"
> >> -						" , errno : %s and got %ld",
> >> +						" , errno : %s and "
> >> +						"got %ld errno %d",
> >>   						testcase[i].exp_errno,
> >>   						testcase[i].exp_errval,
> >> -						TEST_RETURN);
> >> +						TEST_RETURN, TEST_ERRNO);
> >
> > please convert it to TFAIL|TTERRNO instead
> 
> I don't understand. pls describe in detail

dont show/parse TEST_ERRNO yourself.  simply use what i showed as the first 
argument to the tst_resm func.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 354 bytes --]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2009-11-18 23:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-13  7:52 [LTP] [PATCH] clock_settime03: improve message about fail Andrew Vagin
2009-11-13 15:17 ` Mike Frysinger
2009-11-18 13:07   ` Andrew Vagin
2009-11-18 23:46     ` Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-11-25 13:15 Andrew Vagin
2009-11-25 18:08 ` Mike Frysinger
2009-12-01  4:24   ` Garrett Cooper

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=200911181846.42873.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=avagin@gmail.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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