www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/03/11/05:21:54

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Sybari-Trust: 29864d46 2c4885b5 73569057 00000138
From: Martin Stromberg <Martin DOT Stromberg AT epl DOT ericsson DOT se>
Message-Id: <200403111020.LAA16907@lws256.emw.erisoft.se>
Subject: Re: Broken sscanf test case
To: djgpp-workers AT delorie DOT com
Date: Thu, 11 Mar 2004 11:20:57 +0100 (MET)
In-Reply-To: <200403092107.i29L7FJ6005507@envy.delorie.com> from "DJ Delorie" at Mar 09, 2004 04:07:15 PM
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
X-OriginalArrivalTime: 11 Mar 2004 10:21:00.0194 (UTC) FILETIME=[8CAAE820:01C40752]
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 
> 
> > Could you run the altered test case on Linux and see what it thinks?
> 
> FYI I ran these on RHL 9.  They fail both before AND after your patch:
> 
> $ ./before.x 
> Test 8: FAIL: ("1", "%[0123456789]%*c");
>         expected -1;
>         expected c1 '1';
>         expected c2 '';
>         got 1;
>         c == '1'
>         c2 == ''
> Test 18: FAIL: ("1", "%[0123456789]%c");
>         expected -1;
>         expected c1 '1';
>         expected c2 '';
>         got 1;
>         c == '1'
>         c2 == ''
> FAIL
> 
> 
> $ ./after.x 
> Test 3: FAIL: ("1", "%*[0123456789]%*c");
>         expected 0;
>         expected c1 '';
>         expected c2 '';
>         got -1;
>         c == ''
>         c2 == ''
> Test 13: FAIL: ("1", "%*[0123456789]%c");
>         expected 0;
>         expected c1 '';
>         expected c2 '';
>         got -1;
>         c == ''
>         c2 == ''
> FAIL

This matches Solaris 2.6 as well.

I still claim that test cases 3 and 13 are right. If/When I find time
I'll ask at comp.std.c.

We do have consensus on 8 and 18 currently being wrong, right?


Right,

						MartinS

This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019