summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/wprob.test
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/wprob.test')
-rwxr-xr-xBuild/source/texk/web2c/pdftexdir/wprob.test16
1 files changed, 10 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/wprob.test b/Build/source/texk/web2c/pdftexdir/wprob.test
index 8ec3e093bcf..893e65316fc 100755
--- a/Build/source/texk/web2c/pdftexdir/wprob.test
+++ b/Build/source/texk/web2c/pdftexdir/wprob.test
@@ -1,15 +1,19 @@
#! /bin/sh -vx
-# $Id$
-# Copyright 2017 Karl Berry <tex-live@tug.org>
+# $Id: wprob.test 804 2018-05-17 22:29:15Z karl $
+# Copyright 2017-2018 Karl Berry <tex-live@tug.org>
# Copyright 2011-2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
rm -rf pwprob.*
-cp $srcdir/tests/wprob.tex ./pwprob.tex
+cp "$srcdir/tests/wprob.tex" ./pwprob.tex || exit 1
-TEXMFCNF=$srcdir/../kpathsea \
- ./pdftex --ini --etex --file-line-error --interaction=nonstopmode pwprob.tex
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+
+# this command is expected to fail.
+./pdftex --ini --etex --file-line-error --interaction=nonstopmode pwprob.tex \
+&& exit 1
grep '^\./pwprob\.tex:12: Could not open file NoSuchFile\.eps\.$' \
- pwprob.log || exit 1
+ pwprob.log || exit 1
+exit 0