From ead57767f78e0fd661d9b54b8320197712f4988b Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 24 Aug 2017 16:51:34 +0200 Subject: Added testcase for examples/printcap --- test/test_examples.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/test_examples.py b/test/test_examples.py index 760e56f..599726b 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -25,6 +25,12 @@ TEST_FILE = __file__ pytestmark = fuse_test_marker() +def test_printcap(): + cmdline = base_cmdline + [ pjoin(basename, 'example', 'printcap') ] + proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE, + universal_newlines=True) + (stdout, _) = proc.communicate(30) + assert proc.returncode == 0 with open(TEST_FILE, 'rb') as fh: TEST_DATA = fh.read() -- cgit v1.2.3