summaryrefslogtreecommitdiff
path: root/framework/tests
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-10-20 16:30:31 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2015-10-27 15:03:00 -0700
commit899eecd58a59e66adc4562668424a311c95d17fe (patch)
treeccb17a9b7368c4dca04c3b67c599fc211dd5c9ae /framework/tests
parent9d9255c8507534e4901036332e010b81b366fd9d (diff)
framework/test/gtest.py: add super call in interpret_result
This is required to get the crash and warn status. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'framework/tests')
-rw-r--r--framework/tests/gtest_tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/tests/gtest_tests.py b/framework/tests/gtest_tests.py
index d7095de8c..9927bb995 100644
--- a/framework/tests/gtest_tests.py
+++ b/framework/tests/gtest_tests.py
@@ -22,6 +22,8 @@
from __future__ import print_function, absolute_import
+import nose.tools as nt
+
from framework.tests import utils
from framework.test import GTest
@@ -30,3 +32,12 @@ from framework.test import GTest
def test_initialize_gtest():
"""test.gtest.GTest: Class initializes"""
GTest(['/bin/true'])
+
+
+def test_crash():
+ """test.gtest.GTest.interpret_result: Crashes are set to crash"""
+ test = GTest(['foo'])
+ test.result.returncode = -5
+ test.interpret_result()
+
+ nt.eq_(test.result.result, 'crash')