提交 621800d0 编写于 作者: R Rudá Moura 提交者: Lucas Meneghel Rodrigues

tests: Add abort test

This calls os.abort() as the test action, testing avocado
ability of handle this case correctly.
Signed-off-by: NRuda Moura <rmoura@redhat.com>
上级 5723e1f5
#!/usr/bin/python
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See LICENSE for more details.
#
# Copyright: Red Hat Inc. 2014
# Author: Ruda Moura <rmoura@redhat.com>
import os
from avocado import test
from avocado import job
class abort(test.Test):
"""
A test that just calls abort() (and abort).
"""
def action(self):
os.abort()
if __name__ == "__main__":
job.main()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册