Blob Blame History Raw
From f16c91f01e75975fcc00d40cce0383e4fdbce3c2 Mon Sep 17 00:00:00 2001
From: Pavel Raiskup <praiskup@redhat.com>
Date: Wed, 27 Aug 2014 16:19:51 +0200
Subject: [PATCH 15/15] Skip tests unable to run without tty

Upstream thread:
http://mx.gw.com/pipermail/tcsh-bugs/2014-August/000896.html

---
 tests/commands.at  | 2 +-
 tests/lexical.at   | 2 +-
 tests/variables.at | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/commands.at b/tests/commands.at
index b2f0955..f5c3cbd 100644
--- a/tests/commands.at
+++ b/tests/commands.at
@@ -1203,7 +1203,7 @@ AT_SETUP([source])
 AT_DATA([script.csh],
 [[set var=$1
 ]])
-AT_CHECK([[tcsh -f -c 'source -h script.csh foo; history' \
+AT_CHECK([[test -t 0 || exit 77 ; tcsh -f -c 'source -h script.csh foo; history' \
 	   | sed 's/	[^	]*	/ TIME /']], ,
 [     1 TIME source -h script.csh foo ; history
      2 TIME set var=$1
diff --git a/tests/lexical.at b/tests/lexical.at
index f5b1b0f..d15d6b0 100644
--- a/tests/lexical.at
+++ b/tests/lexical.at
@@ -33,7 +33,7 @@ AT_SETUP([Comments])
 AT_CHECK([echo 'echo OK@%:@comment' | tcsh -f], , [OK
 ])
 
-AT_CHECK([tcsh -f -c 'echo @%:@no comment'], ,
+AT_CHECK([test -t 0 || exit 77 ; tcsh -f -c 'echo @%:@no comment'], ,
 [@%:@no comment
 ])
 
diff --git a/tests/variables.at b/tests/variables.at
index 424e4da..d6dd6e7 100644
--- a/tests/variables.at
+++ b/tests/variables.at
@@ -319,7 +319,7 @@ AT_CLEANUP
 
 AT_SETUP([$ edit])
 
-AT_CHECK([TERM=something tcsh -f -c 'echo $?edit'], ,
+AT_CHECK([test -t 0 || exit 77 ; TERM=something tcsh -f -c 'echo $?edit'], ,
 [1
 ])
 
-- 
1.9.3