diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-06-01 00:20:46 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-06-01 01:10:43 +0300 |
commit | 41068f47dcaf7cc7606a3934471047ca4c8a3edd (patch) | |
tree | 94d5db4572ba1d5ef86793f65724758edc8a9af2 /tests | |
parent | 94433d523b03fad6abfa756ae819df03aaf0cfba (diff) | |
download | direvent-41068f47dcaf7cc7606a3934471047ca4c8a3edd.tar.gz direvent-41068f47dcaf7cc7606a3934471047ca4c8a3edd.tar.bz2 |
Minor fixes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/envdump.c | 2 | ||||
-rw-r--r-- | tests/write.at | 22 |
2 files changed, 18 insertions, 6 deletions
diff --git a/tests/envdump.c b/tests/envdump.c index d1140b3..0dbb875 100644 --- a/tests/envdump.c +++ b/tests/envdump.c @@ -193,7 +193,7 @@ main(int argc, char **argv) mode = "a"; break; case 'h': - printf("usage: %s [-ahs] [-i INCLUDELIST] [-k PID[:SIG]] [FILE]\n", + printf("usage: %s [-ahs] [-i INCLUDELIST] [-k [@]PID[:SIG]] [FILE]\n", progname); return 0; case 's': diff --git a/tests/write.at b/tests/write.at index 8a8a2bf..a2bd64f 100644 --- a/tests/write.at +++ b/tests/write.at @@ -1,3 +1,19 @@ +# This file is part of Dircond testsuite. -*- Autotest -*- +# Copyright (C) 2013 Sergey Poznyakoff +# +# Dircond is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# Dircond is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Dircond. If not, see <http://www.gnu.org/licenses/>. + AT_SETUP([Write]) AT_KEYWORDS([write]) @@ -29,11 +45,7 @@ EOT dircond -lnotice test.conf || exit 1 -ed dir/file >/dev/null 2>&1 <<EOT -2d -w -q -EOT +echo "to come to" >> dir/file waitfile $outfile 6 || exit 2 kill `cat $pidfile` |