From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3616 invoked by alias); 5 May 2006 10:07:00 -0000 Received: (qmail 3544 invoked by uid 22791); 5 May 2006 10:06:59 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 05 May 2006 10:06:55 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id k45A6onw027994; Fri, 5 May 2006 12:06:50 +0200 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id k45A6nDi027993; Fri, 5 May 2006 12:06:49 +0200 Date: Fri, 05 May 2006 10:07:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Fix tst-printf on 32-bit arches Message-ID: <20060505100649.GK4651@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00002.txt.bz2 Hi! Apparently, tst-printf.sh contains two alternative expected outputs, one for 32-bit and one for 64-bit arches. But the adjustments were done only in the 64-bit expected output so far. 2006-05-05 Jakub Jelinek [BZ #2509] * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even on 32-bit arches. --- libc/stdio-common/tst-printf.sh.jj 2006-05-05 11:56:54.000000000 +0200 +++ libc/stdio-common/tst-printf.sh 2006-05-05 11:58:47.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Testing of printf. -# Copyright (C) 2000, 2002 Free Software Foundation, Inc. +# Copyright (C) 2000, 2002, 2006 Free Software Foundation, Inc. # This file is part of the GNU C Library. # @@ -136,6 +136,12 @@ Test ok. sprintf (buf, "%07Lo", 040000000000ll) = 40000000000 printf ("%hhu", 257) = 1 printf ("%hu", 65537) = 1 +printf ("%hhi", 257) = 1 +printf ("%hi", 65537) = 1 +printf ("%1$hhu", 257) = 1 +printf ("%1$hu", 65537) = 1 +printf ("%1$hhi", 257) = 1 +printf ("%1$hi", 65537) = 1 --- Should be no further output. --- EOF cmp - ${common_objpfx}stdio-common/tst-printf.out > /dev/null 2>&1 || Jakub