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: 7335 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; } }