]> Dogcows Code - chaz/tar/blobdiff - tests/iotty.at
Don't build ttyemu and run tty I/O test if grantpt is not available.
[chaz/tar] / tests / iotty.at
index ea15c84c3bd579ae7ced532bac99b76e8bb79a1d..7cbb17800feb298e5c7bdf592af4f7668ceb42b3 100644 (file)
@@ -27,12 +27,15 @@ AT_SETUP([terminal input])
 AT_KEYWORDS([options iotty])
 
 AT_TAR_CHECK([
+test -x $abs_builddir/ttyemu || AT_SKIP_TEST
 TAPE=-
 export TAPE
 ttyemu -t5 -i/dev/null tar -x
 echo $?
 ttyemu -t5 -i/dev/null tar -xz
 echo $?
+ttyemu -t5 -i/dev/null tar -c .
+echo $?
 ],
 [0],
 [tar: Refusing to read archive contents from terminal (missing -f option?)
@@ -41,6 +44,9 @@ tar: Error is not recoverable: exiting now
 tar: Refusing to read archive contents from terminal (missing -f option?)
 tar: Error is not recoverable: exiting now
 2
+tar: Refusing to write archive contents to terminal (missing -f option?)
+tar: Error is not recoverable: exiting now
+2
 ],
 [],[],[],[posix, gnu, oldgnu])
 
This page took 0.021806 seconds and 4 git commands to generate.