summaryrefslogtreecommitdiff
path: root/tests/dirrem01.at
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-12-28 13:17:44 +0200
committerSergey Poznyakoff <gray@gnu.org>2018-12-28 13:27:02 +0200
commite7cd377f7801d42aa8e07addff93d2150666c237 (patch)
treee2a7c118bde14224e96e604e925d65448ab96fc3 /tests/dirrem01.at
parentc15c42ccd1e2377945fd0414eca1a49294bff454 (diff)
downloadtar-e7cd377f7801d42aa8e07addff93d2150666c237.tar.gz
Implement the "wait" checkpoint action.
This action instructs tar to pause until given signal is delivered. The newer genfile tool uses this action for communication between genfile and tar in exec mode. This eliminates race conitions and speeds up the tests based on exec mode. * doc/tar.texi: Document changes. * paxutils: Upgrade. * src/checkpoint.c: Implement the wait action. * src/common.h (decode_signal): New proto. * src/tar.c (decode_signal): New function. (set_stat_signal): Rewrite. * tests/dirrem01.at: Adjust genfile and tar command line arguments to use the new feature. * tests/dirrem02.at: Likewise. * tests/filerem01.at: Likewise. * tests/filerem02.at: Likewise. * tests/grow.at: Likewise. * tests/sptrcreat.at: Likewise. * tests/sptrdiff00.at: Likewise. * tests/sptrdiff01.at: Likewise. * tests/truncate.at: Likewise.
Diffstat (limited to 'tests/dirrem01.at')
-rw-r--r--tests/dirrem01.at5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/dirrem01.at b/tests/dirrem01.at
index dabc206f..b82be02b 100644
--- a/tests/dirrem01.at
+++ b/tests/dirrem01.at
@@ -1,7 +1,7 @@
# Process this file with autom4te to create testsuite. -*- Autotest -*-
# Test suite for GNU tar.
-# Copyright 2017 Free Software Foundation, Inc.
+# Copyright 2017-2018 Free Software Foundation, Inc.
# This file is part of GNU tar.
@@ -47,8 +47,7 @@ gnu) CPT=3;;
esac
genfile --run --checkpoint=$CPT --unlink dir/sub/file2 --unlink dir/sub -- \
- tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='echo' \
- --checkpoint-action='sleep=1' -c -f archive.tar \
+ tar --blocking-factor=1 -c -f archive.tar \
--listed-incremental db -v dir >/dev/null
],
[1],