projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f12d968
)
Added testcase for examples/printcap
author
Nikolaus Rath
<Nikolaus@rath.org>
Thu, 24 Aug 2017 14:51:34 +0000
(16:51 +0200)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Thu, 24 Aug 2017 15:19:07 +0000
(17:19 +0200)
test/test_examples.py
patch
|
blob
|
history
diff --git
a/test/test_examples.py
b/test/test_examples.py
index 760e56f28b435199240a2cb571ad4ed14bba8132..599726b193172f5ecd20257369e8ee93b786ff62 100755
(executable)
--- 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()