texinfo-commits
[Top][All Lists]
Advanced

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

[6315] add replace-viewed.sh test


From: Gavin D. Smith
Subject: [6315] add replace-viewed.sh test
Date: Sun, 07 Jun 2015 12:10:35 +0000

Revision: 6315
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6315
Author:   gavin
Date:     2015-06-07 12:10:34 +0000 (Sun, 07 Jun 2015)
Log Message:
-----------
add replace-viewed.sh test

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/Makefile.am

Added Paths:
-----------
    trunk/info/t/replace-viewed.sh

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2015-06-06 17:07:09 UTC (rev 6314)
+++ trunk/ChangeLog     2015-06-07 12:10:34 UTC (rev 6315)
@@ -1,3 +1,13 @@
+2015-06-07  Gavin Smith  <address@hidden>
+
+       * info/t/replaced-viewed.sh: New test.  (Bug reported by Benno 
+       Schulenberg).
+       * info/Makefile.am (TESTS, XFAIL_TESTS): Add it.
+
+2015-06-07  Karl Berry  <address@hidden>
+
+       * Pretest 5.9.93.
+
 2015-06-06  Gavin Smith  <address@hidden>
 
        * info/t/Timeout-test.inc: Check for "read -t" slightly 

Modified: trunk/info/Makefile.am
===================================================================
--- trunk/info/Makefile.am      2015-06-06 17:07:09 UTC (rev 6314)
+++ trunk/info/Makefile.am      2015-06-07 12:10:34 UTC (rev 6315)
@@ -141,6 +141,7 @@
        t/menu-sequence.sh \
        t/relative-reference.sh \
        t/resize-in-completions.sh \
+       t/replace-viewed.sh \
        t/search-skip-screen.sh \
        t/search-empty.sh \
        t/inc-sea-forward.sh \
@@ -157,6 +158,7 @@
        t/help.sh
 
 XFAIL_TESTS = \
+       t/replace-viewed.sh \
        t/quoted-label-as-target.sh \
        t/quoted-target.sh \
        t/quoted-label-and-target.sh \

Added: trunk/info/t/replace-viewed.sh
===================================================================
--- trunk/info/t/replace-viewed.sh                              (rev 0)
+++ trunk/info/t/replace-viewed.sh      2015-06-07 12:10:34 UTC (rev 6315)
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Copyright (C) 2015 Free Software Foundation, Inc.
+#
+# This program 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.
+#
+# This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
+
+srcdir=${srcdir:-.}
+. $srcdir/t/Init-test.inc
+. $t/Init-inter.inc
+
+# Test of replacing a file while it is being viewed
+
+rm -f t/replace-viewed.info
+cp $t/infodir/sample.info t/replace-viewed.info
+# We copied from srcdir to builddir here.
+
+run_ginfo -f t/replace-viewed.info
+
+# Make sure ginfo is up and running
+printf 'D' >$PTY_TYPE
+while test ! -f $GINFO_OUTPUT ; do sleep 1 ; done
+cat $GINFO_OUTPUT
+
+# Now replace the file while it is being viewed.
+rm t/replace-viewed.info
+cp $t/infodir/sample.info t/replace-viewed.info
+
+# Do a search.  This triggers ginfo's internal garbage collection.
+printf '/what\r' >$PTY_TYPE
+printf q >$PTY_TYPE
+
+rm t/replace-viewed.info
+
+. $t/Timeout-test.inc
+
+cleanup


Property changes on: trunk/info/t/replace-viewed.sh
___________________________________________________________________
Added: svn:executable
   + *




reply via email to

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