All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@petalogix.com>
To: subrata@linux.vnet.ibm.com
Cc: ltp-list@lists.sourceforge.net,
	Mike Frysinger <vapier@gentoo.org>,
	Jiri Palecek <jpalecek@web.de>
Subject: Re: [LTP] [PATCH] Make the test result codes a real bitfield again
Date: Mon, 03 Aug 2009 16:42:51 +0200	[thread overview]
Message-ID: <4A76F76B.9070704@petalogix.com> (raw)
In-Reply-To: <1249298406.7460.25.camel@subratamodak.linux.ibm.com>

Hi Mike and Subrata,
> Mike,
>
> You would need to see this.
>   
Jiri is right. I sent one email about some minutes ago (but not solution).
Please ignore my email and add this change. I tested it and works.

BTW: I haven't seen that Mike's patches on mailing list.

Thanks,
Michal

> Regards--
> Subrata
>
> On Thu, 2009-07-30 at 11:57 +0200, Jiri Palecek wrote: 
>   
>> Hello,
>>
>> the commit "extend the test result to a bit field so we can extend the output further" from July 20th unfortunately changes the code, that was previously a bitfield, to a non-bitfield. This causes FAILED tests to return erroneously 0.
>>
>> This patch changes the test result codes to be individual bits in the bitfield (effectively reverting  a small part of aforementioned patch).
>>
>> Regards
>>     Jiri Palecek
>>
>> ---
>>  include/test.h |   12 ++++++------
>>  1 files changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/include/test.h b/include/test.h
>> index 5c325b3..4d9803a 100644
>> --- a/include/test.h
>> +++ b/include/test.h
>> @@ -44,15 +44,15 @@
>>
>>  #include "compiler.h"
>>
>> -/* Use low 4 bits to encode test type */
>> -#define TTYPE_MASK 0xf
>> +/* Use low 6 bits to encode test type */
>> +#define TTYPE_MASK 0x3f
>>  #define TPASS      0    /* Test passed flag */
>>  #define TFAIL      1    /* Test failed flag */
>>  #define TBROK      2    /* Test broken flag */
>> -#define TWARN      3    /* Test warning flag */
>> -#define TRETR      4    /* Test retire flag */
>> -#define TINFO      5    /* Test information flag */
>> -#define TCONF      6    /* Test not appropriate for configuration flag */
>> +#define TWARN      4    /* Test warning flag */
>> +#define TRETR      8    /* Test retire flag */
>> +#define TINFO      16   /* Test information flag */
>> +#define TCONF      32   /* Test not appropriate for configuration flag */
>>  #define TTYPE_RESULT(ttype) ((ttype) & TTYPE_MASK)
>>
>>  #define TERRNO     0x100   /* Append errno information to output */
>>     
>
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>   


-- 
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663


------------------------------------------------------------------------------
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
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2009-08-03 14:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200907301305.n6UD5G7F023361@e32.co.us.ibm.com>
2009-08-03 11:20 ` [LTP] [PATCH] Make the test result codes a real bitfield again Subrata Modak
2009-08-03 14:42   ` Michal Simek [this message]
2009-08-04 12:08     ` Subrata Modak
     [not found] <4a719afc.9f13f30a.2eaa.ffffa236SMTPIN_ADDED@mx.google.com>
2009-08-13  9:57 ` Mike Frysinger
2009-07-30  9:57 Jiri Palecek

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=4A76F76B.9070704@petalogix.com \
    --to=michal.simek@petalogix.com \
    --cc=jpalecek@web.de \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=subrata@linux.vnet.ibm.com \
    --cc=vapier@gentoo.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.