Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Ports
coreutils-testsuite
coreutils-fix_false_du_failure_on_newer_xfs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File coreutils-fix_false_du_failure_on_newer_xfs.patch of Package coreutils-testsuite
From coreutils-bounces+pth=suse.de@gnu.org Tue Sep 16 00:19:14 2014 Return-Path: <coreutils-bounces+pth=suse.de@gnu.org> X-Original-To: pth@wotan.suse.de Received: from relay1.suse.de (relay1.suse.de [149.44.160.133]) by wotan.suse.de (Postfix) with ESMTP id 9E7716283 for <pth@wotan.suse.de>; Tue, 16 Sep 2014 00:19:14 +0200 (CEST) Received: by relay1.suse.de (Postfix) id 9723D28DD; Tue, 16 Sep 2014 00:19:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by relay1.suse.de (Postfix) with ESMTP id 91A4228D9 for <pth@suse.de>; Tue, 16 Sep 2014 00:19:14 +0200 (CEST) X-Virus-Scanned: by amavisd-new at localhost X-Spam-Flag: NO X-Spam-Score: -5.868 X-Spam-Level: X-Spam-Status: No, score=-5.868 tagged_above=-9999 required=5 tests=[BAYES_50=0.8, IS_MAILMAN_LIST=-1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.668] autolearn=disabled Received: from relay1.suse.de ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ChE53gAm38xF for <pth@suse.de>; Tue, 16 Sep 2014 00:19:14 +0200 (CEST) Received: from mx1.suse.de (cantor1.suse.de [195.135.220.2]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by relay1.suse.de (Postfix) with ESMTPS id 3DFCE2030 for <pth@suse.de>; Tue, 16 Sep 2014 00:19:14 +0200 (CEST) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTPS id 14E56AAC5 for <pth@suse.de>; Tue, 16 Sep 2014 00:19:14 +0200 (CEST) Received: from localhost ([::1]:34619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <coreutils-bounces+pth=suse.de@gnu.org>) id 1XTec5-00066K-6z for pth@suse.de; Mon, 15 Sep 2014 18:19:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <mail@bernhard-voelker.de>) id 1XTebt-0005zb-Ea for coreutils@gnu.org; Mon, 15 Sep 2014 18:19:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mail@bernhard-voelker.de>) id 1XTebh-0006mb-A2 for coreutils@gnu.org; Mon, 15 Sep 2014 18:19:01 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:61454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mail@bernhard-voelker.de>) id 1XTebh-0006m4-1Y for coreutils@gnu.org; Mon, 15 Sep 2014 18:18:49 -0400 Received: from blackice.site (pD957CBB4.dip0.t-ipconnect.de [217.87.203.180]) by mrelayeu.kundenserver.de (node=mreue007) with ESMTP (Nemesis) id 0MY0P5-1Xnddz1jeR-00WkzE; Tue, 16 Sep 2014 00:18:44 +0200 From: Bernhard Voelker <mail@bernhard-voelker.de> To: coreutils@gnu.org Subject: [PATCH] tests: fix false du failure on newer XFS Date: Tue, 16 Sep 2014 00:17:43 +0200 Message-Id: <1410819463-5423-1-git-send-email-mail@bernhard-voelker.de> X-Mailer: git-send-email 1.8.4.5 X-Provags-ID: V02:K0:qhDLt5+dLDL9ZojGDjR2JCZUT99RsLhoiyP2U0vHUVe 6sFe6AEQdVdEBTcxwG3rxuMC20RiygA6M3jqShv8YrHI8aMVAd eE8xJ/hJz3vHhN5RsbqbiGh6bGodZh6z/8pEPo4nIZfvFj5/Oy IXHy4YysR6g0Ci11Fcpx0MH2q50tuGRgVct132icfAEbWFZM7o //TkmA8XFocuHSW4d1dv6YXnnf1OA1QDsTHrc7TrX3NwqGqTzl qIUlhT4OBcqPtunpPR5ty3yLNFY61T33c0Y4tB0LRpDgS7bbE7 Gk8SkMUBH447xJjIFByTt+DQk+mgpo1h1Eo2vUlIFXzNzZrdaV BcRVj5v4GBKK1/e2y3rVH4VUBgbCZiJhb9TsicXKVwkF+Xejjb mCtjMo7wyvEjtHeCr0aBNLE18yA2j8FEEI= X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.126.130 Cc: Bernhard Voelker <mail@bernhard-voelker.de> X-BeenThere: coreutils@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNU coreutils General Discussion <coreutils.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/coreutils>, <mailto:coreutils-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/coreutils> List-Post: <mailto:coreutils@gnu.org> List-Help: <mailto:coreutils-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/coreutils>, <mailto:coreutils-request@gnu.org?subject=subscribe> Errors-To: coreutils-bounces+pth=suse.de@gnu.org Sender: coreutils-bounces+pth=suse.de@gnu.org Status: RO Content-Length: 1239 Lines: 40 * tests/du/2g.sh: Similar to the fix for a dd test (see commit v8.22-65-g7c03fe2), avoid speculative preallocation by creating the 'big' file in one go instead of appending to it in the loop. Remove debugging statements as the output with 'set -x' is sufficient nowadays. --- tests/du/2g.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) Index: coreutils-8.22/tests/du/2g.sh =================================================================== --- coreutils-8.22.orig/tests/du/2g.sh 2013-12-04 15:48:30.000000000 +0100 +++ coreutils-8.22/tests/du/2g.sh 2014-09-16 14:00:30.718944253 +0200 @@ -46,15 +46,14 @@ test $min_kb -lt $free_kb || big=big rm -f $big -test -t 1 || printf 'creating a 2GB file...\n' -for i in $(seq 100); do - # Note: 2147483648 == 2^31. Print floor(2^31/100) per iteration. - printf %21474836s x >> $big || fail=1 - # On the final iteration, append the remaining 48 bytes. - test $i = 100 && { printf %48s x >> $big || fail=1; } - test -t 1 && printf 'creating a 2GB file: %d%% complete\r' $i -done -echo +{ + for i in $(seq 100); do + # Note: 2147483648 == 2^31. Print floor(2^31/100) per iteration. + printf %21474836s x || fail=1 + done + # After the final iteration, append the remaining 48 bytes. + printf %48s x || fail=1 +} > $big || fail=1 du -k $big > out1 || fail=1 rm -f $big
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor