texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[6314] check for read -t differently


From: Gavin D. Smith
Subject: [6314] check for read -t differently
Date: Sat, 06 Jun 2015 17:07:10 +0000

Revision: 6314
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6314
Author:   gavin
Date:     2015-06-06 17:07:09 +0000 (Sat, 06 Jun 2015)
Log Message:
-----------
check for read -t differently

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/t/Timeout-test.inc

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2015-06-06 15:36:22 UTC (rev 6313)
+++ trunk/ChangeLog     2015-06-06 17:07:09 UTC (rev 6314)
@@ -1,5 +1,10 @@
 2015-06-06  Gavin Smith  <address@hidden>
 
+       * info/t/Timeout-test.inc: Check for "read -t" slightly 
+       differently.
+
+2015-06-06  Gavin Smith  <address@hidden>
+
        * info/t/Init-test.inc,
        * info/t/Init-inter.inc: Check if running the test turned off 
        terminal echoing, and only run "stty sane" if that is the case.

Modified: trunk/info/t/Timeout-test.inc
===================================================================
--- trunk/info/t/Timeout-test.inc       2015-06-06 15:36:22 UTC (rev 6313)
+++ trunk/info/t/Timeout-test.inc       2015-06-06 17:07:09 UTC (rev 6314)
@@ -19,8 +19,10 @@
 TIMED_OUT=
 
 # Attempt to test if "read -t" works.  Under Solaris 10, read -t below
-# should exit the subshell with an error exit status.
-(read -t 0; exit 0)
+# should exit the subshell with an error exit status.  Under some other
+# shells the subshell will not exit but the "read -t" will have an exit
+# status of 2, representing a syntax error.
+(read -t 0 ; test $? != 2 ; exit $?)
 if test $? != 0; then
   # skip test below
   status=2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]