From ec586b37e025315f65bf169b03ce9d1a8d1659f9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 6 Dec 2010 14:26:57 -0800 Subject: [PATCH] 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. --- tests/truncate.at | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.45.2