summaryrefslogtreecommitdiff
path: root/tests/dirrem01.at
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearsPaul Eggert2023-01-061-1/+1
| | | | | | | | | UPDATE_COPYRIGHT_USE_INTERVALS=1 \ gnulib/build-aux/update-copyright \ $(git ls-files | sed -e '/^gnulib$/d /^paxutils$/d /^COPYING$/d /\/fdl.texi$/d')
* Update copyright yearsSergey Poznyakoff2022-01-021-1/+1
|
* Update copyright yearsSergey Poznyakoff2021-01-061-1/+1
|
* Update copyright yearsSergey Poznyakoff2020-02-081-1/+1
|
* Fix expected output in dirrem tests.Sergey Poznyakoff2019-01-141-5/+10
| | | | | | | | | | | | In both tests, the "file changed as we read it" warning might be produced for dir/sub, depending on the ctime resolution and timing. The problem was fixed by 64b43fdf70d82c39eb2ca900cd4f8e49, but regressed after e7cd377f7801d42aa8e07addff93d2150666c237, which removed 1 second delays between each pair of checkpoints. Since the presense or absense of this warning is irrelevant for the test, it is now suppressed. * tests/dirrem01.at: Suppress the file-changed warning. * tests/dirrem02.at: Likewise.
* Version 1.31release_1_31Sergey Poznyakoff2019-01-021-1/+1
|
* Implement the "wait" checkpoint action.Sergey Poznyakoff2018-12-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* tests: fix race in dirrem01 and dirrem02Pavel Raiskup2018-03-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the '--checkpoint-action=echo' was triggered after '--checkpoint-action=sleep=1' - so the order of events *usually* was (for --format='gnu'): ... 1. checkpoint handler before write of 'dir/sub' member 2. one-second delay 3. stderr write: 'tar: Write checkpoint 3' 4. write the member 'dir/sub' into the archive 5. check that the member's ctime has not been changed 6. genfile's detecting 'Write checkpoint', doing unlink ... But sometimes, the genfile was fast enough to win the race and unlinked the directory before the member was written into the archive (IOW, the order was 1-2-3-6-4-5). This led to the occasional warning 'tar: dir/sub: file changed as we read it'. Swap the order of 'sleep=1' and 'echo' actions so the genfile utility has (hopefully) enough time to do the unlink before writing the file into the archive (enforce 1-2-3-6-4-5 order). * tests/dirrem01.at: Swap 'sleep=1' and 'echo' actions. * tests/dirrem02.at: Likewise.
* Fix handling of directories removed during incremental tar runJonas Julino2017-05-291-0/+62
Co-authored-by: Sergey Poznyakoff <gray@gnu.org.ua> * paxutils: Upgrade * src/create.c (create_archive): Use file_removed_diag instead of calling the corresponding *_diag function directly. * tests/dirrem01.at: New testcase. * tests/dirrem02.at: New testcase. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Likewise.