diff options
Diffstat (limited to 'test_server.py')
-rw-r--r-- | test_server.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test_server.py b/test_server.py index 45401fd..be9f876 100644 --- a/test_server.py +++ b/test_server.py @@ -69,6 +69,14 @@ def test_bash(): 'docs/sample.sh\ndocs/sample.args', '/tmp', language="bash") check_result(result, 'error') + src = '''# Enter your code here. +#!/bin/bash + while [ 1 ] ; do echo "" > /dev/null + ''' + result = code_server.run_code(src, + 'docs/sample.sh\ndocs/sample.args', '/tmp', language="bash") + check_result(result, 'oserror') + if __name__ == '__main__': test_python() test_bash() |