From: Nikolaus Rath Date: Fri, 5 Jul 2019 10:03:31 +0000 (+0100) Subject: test_cuse: fix runtime error X-Git-Tag: fuse-3.6.2~3 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4cfbc27d4ec1a18d42f08e704eafb1b7b37332a9;p=qemu-gpiodev%2Flibfuse.git test_cuse: fix runtime error We are no longer using the capfd mechanism. --- diff --git a/test/test_examples.py b/test/test_examples.py index 72c4100..26f3b92 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -338,12 +338,12 @@ def test_notify_inval_entry(tmpdir, notify, output_checker): @pytest.mark.skipif(os.getuid() != 0, reason='needs to run as root') -def test_cuse(capfd, output_checker): +def test_cuse(output_checker): # Valgrind warns about unknown ioctls, that's ok - capfd.register_output(r'^==([0-9]+).+unhandled ioctl.+\n' - r'==\1== \s{3}.+\n' - r'==\1== \s{3}.+$', count=0) + output_checker.register_output(r'^==([0-9]+).+unhandled ioctl.+\n' + r'==\1== \s{3}.+\n' + r'==\1== \s{3}.+$', count=0) devname = 'cuse-test-%d' % os.getpid() devpath = '/dev/%s' % devname