texinfo-commits
[Top][All Lists]
Advanced

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

[5877] test for opening empty file


From: Gavin D. Smith
Subject: [5877] test for opening empty file
Date: Wed, 15 Oct 2014 16:03:54 +0000

Revision: 5877
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5877
Author:   gavin
Date:     2014-10-15 16:03:53 +0000 (Wed, 15 Oct 2014)
Log Message:
-----------
test for opening empty file

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

Added Paths:
-----------
    trunk/info/t/empty.sh

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-10-15 15:49:49 UTC (rev 5876)
+++ trunk/ChangeLog     2014-10-15 16:03:53 UTC (rev 5877)
@@ -1,5 +1,9 @@
 2014-10-15  Gavin Smith  <address@hidden>
 
+       * info/t/empty.sh: New test.
+
+2014-10-15  Gavin Smith  <address@hidden>
+
        * info/info.c (add_initial_nodes): FILE_BUFFER argument removed.
        <--usage>: Display an error meesage if there is no node to give 
        a file to look for an invocation node.

Modified: trunk/info/Makefile.am
===================================================================
--- trunk/info/Makefile.am      2014-10-15 15:49:49 UTC (rev 5876)
+++ trunk/info/Makefile.am      2014-10-15 16:03:53 UTC (rev 5877)
@@ -109,6 +109,7 @@
        t/spec-no-node.sh \
        t/spec-menu.sh \
        t/all-only.sh \
+       t/empty.sh \
        t/cr-tag-table.sh \
        t/tab.sh \
        t/tab-argument.sh \

Added: trunk/info/t/empty.sh
===================================================================
--- trunk/info/t/empty.sh                               (rev 0)
+++ trunk/info/t/empty.sh       2014-10-15 16:03:53 UTC (rev 5877)
@@ -0,0 +1,25 @@
+#!/bin/sh
+# Copyright (C) 2014 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
+
+# Open an empty file, and check we don't crash.  Note that the file is 
+# created in $builddir.
+rm -f empty.info
+touch empty.info
+INFOPATH=. $GINFO --output - empty
+rm -f empty.info


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




reply via email to

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