From patchwork Wed Jun 24 20:57:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 488210 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 34353140309 for ; Thu, 25 Jun 2015 06:57:39 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=sourceware.org header.i=@sourceware.org header.b=tJ9qRxK0; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=j4Qm1ozunDIMGZefSidx74v78ZkQuWBCilW2+m7hE/2IQv 71Mf+5uPm261i/2rsW8GQQYo0BBUGDjrHZMXqrVccGY0CIrI9PDad8sSEzx+Bwmk bC3xjhEeG3ntC/Kpuh5F1Y2GDBHavx/WszIeza4yauNiR17H6b7fV/WGAb/QE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=WLMcOXo5a+3VsrcBr7XJZnD62Gc=; b=tJ9qRxK0Cjm10Z9+WY/y gEXz0sKihuCpgN18ob7Q4PrJDXlUJ2YK0FCwLpy7aMeV9HiwMSaxBg3M1DoVVclL V+ej+4gsCXujMIYbON6C4ScHcG3y2R4YZg1gWDze//26GV9S3sKp+ONtgLuI1Nwy x8UA6j5OUAnIbkePFjLUlJ0= Received: (qmail 1087 invoked by alias); 24 Jun 2015 20:57:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 128440 invoked by uid 89); 24 Jun 2015 20:57:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Print more information in tst-getcpu failure case. Message-Id: <20150624205729.CC8DF2C3AD8@topped-with-meat.com> Date: Wed, 24 Jun 2015 13:57:29 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=Xd241BxkCgzAsVkMkKkA:9 a=CjuIK1q_8ugA:10 2015-06-24 Roland McGrath * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu return value is wrong, print the expected value too. diff --git a/sysdeps/unix/sysv/linux/tst-getcpu.c b/sysdeps/unix/sysv/linux/tst-getcpu.c index 77baebc..d9c05a7 100644 --- a/sysdeps/unix/sysv/linux/tst-getcpu.c +++ b/sysdeps/unix/sysv/linux/tst-getcpu.c @@ -43,7 +43,7 @@ do_test (void) } if (cpu2 != cpu) { - printf ("getcpu results %d not possible\n", cpu2); + printf ("getcpu results %d should be %d\n", cpu2, cpu); result = 1; } }