parallel: test of $TMPDIR running full.

This commit is contained in:
Ole Tange 2013-12-01 14:42:04 +01:00
parent e817c6d7f5
commit 3a6be8a6ec
3 changed files with 12 additions and 1 deletions

View file

@ -4927,7 +4927,9 @@ sub print {
my $pos = tell $in_fd;
print $in_fd "x"x8193;
if(tell $in_fd == $pos) {
::error("Cannot append to buffer file in \$TMPDIR. Disk full?\n");
::error("Output is incomplete. Cannot append to buffer file in \$TMPDIR. Is the disk full?\n");
::error("Change \$TMPDIR with --tmpdir.\n");
::wait_and_exit(255);
}
truncate $in_fd, $pos;
# Seek to start

View file

@ -10,6 +10,11 @@ echo '### Test if we can deal with output > 4 GB'
echo '**'
echo "### Test --tmpdir running full. bug #40733 was caused by this"
stdout parallel -j1 --tmpdir /run/shm cat /dev/zero ::: dummy
echo '**'
echo "### Test Force outside the file handle limit, 2009-02-17 Gave fork error"
(echo echo Start; seq 1 20000 | perl -pe 's/^/true /'; echo echo end) | stdout parallel -uj 0 | egrep -v 'processes took|adjusting'

View file

@ -1,6 +1,10 @@
### Test if we can deal with output > 4 GB
46a318993dfc8e2afd71ff2bc6f605f1 -
**
### Test --tmpdir running full. bug #40733 was caused by this
parallel: Error: Output is incomplete. Cannot append to buffer file in $TMPDIR. Is the disk full?
parallel: Error: Change $TMPDIR with --tmpdir.
**
### Test Force outside the file handle limit, 2009-02-17 Gave fork error
parallel: Warning: Only enough file handles to run 506 jobs in parallel.
Raising ulimit -n or /etc/security/limits.conf may help.