From: Paul Eggert Date: Mon, 6 Dec 2010 22:26:57 +0000 (-0800) Subject: tests: make the truncate test smaller and less buggy (tiny change) X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ec586b37e025315f65bf169b03ce9d1a8d1659f9;p=chaz%2Ftar tests: make the truncate test smaller and less buggy (tiny change) Reported by Solar Designer in . * tests/truncate.at: Use a smaller test case, and make its race condition less likely. --- diff --git a/tests/truncate.at b/tests/truncate.at index 65f1e34..973cbc1 100644 --- a/tests/truncate.at +++ b/tests/truncate.at @@ -30,13 +30,12 @@ AT_SETUP([truncate]) AT_KEYWORDS([truncate filechange]) AT_TAR_CHECK([ -genfile --file foo --length 50000k +genfile --file foo --length 200k genfile --file baz -genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz +genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz echo Exit status: $? echo separator -sleep 1 -genfile --file foo --seek 49995k --length 5k --pattern=zeros +genfile --file foo --seek 195k --length 5k --pattern=zeros tar dvf bar], [1], [foo