Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
lesswixx
assignment-1-io-library
Commits
f85c8ca4
Commit
f85c8ca4
authored
2 years ago
by
Nikita Akatyev
💬
Browse files
Options
Download
Email Patches
Plain Diff
Segmentation fault handler
parent
52d6a911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
test.py
test.py
+2
-0
No files found.
test.py
View file @
f85c8ca4
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment