Commit f85c8ca4 authored by Nikita Akatyev's avatar Nikita Akatyev 💬
Browse files

Segmentation fault handler

parent 52d6a911
......@@ -108,8 +108,10 @@ class IOLibraryTest(unittest.TestCase):
try:
p = Popen(['./'+fname], shell=None, stdin=PIPE, stdout=PIPE)
(output, _) = p.communicate(input)
self.assertNotEqual(p.returncode, -11, 'segmentation fault')
return (output, p.returncode)
except CalledProcessError as exc:
self.assertNotEqual(exc.returncode, -11, 'segmentation fault')
return (exc.output, exc.returncode)
def perform(self, fname, text, input):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment