diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-01-18 13:55:38 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-01-18 14:11:57 +0700 |
commit | 57c672983864f3c21f0f5461d4597b28ec3f7471 (patch) | |
tree | 935ba27baf5f538c63d1852313f7ccc12e5c72a0 /tests | |
parent | 7b47897f853989c10921745d1556d998d78ec295 (diff) |
Make exception tests named more consistently.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/test_exceptions_2.in (renamed from tests/core/test_exception_2.in) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_2.out (renamed from tests/core/test_exception_2.out) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_multi.in (renamed from tests/core/test_multiexception.in) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_multi.out (renamed from tests/core/test_multiexception.out) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_std.in (renamed from tests/core/test_std_exception.in) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_std.out (renamed from tests/core/test_std_exception.out) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_typed.in (renamed from tests/exceptions/typed.cpp) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_typed.out (renamed from tests/exceptions/output.txt) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_white_list.in (renamed from tests/core/test_white_list_exception.in) | 0 | ||||
-rw-r--r-- | tests/core/test_exceptions_white_list.out (renamed from tests/core/test_white_list_exception.out) | 0 | ||||
-rw-r--r-- | tests/test_core.py | 32 |
11 files changed, 17 insertions, 15 deletions
diff --git a/tests/core/test_exception_2.in b/tests/core/test_exceptions_2.in index 2eae3198..2eae3198 100644 --- a/tests/core/test_exception_2.in +++ b/tests/core/test_exceptions_2.in diff --git a/tests/core/test_exception_2.out b/tests/core/test_exceptions_2.out index aa89c67d..aa89c67d 100644 --- a/tests/core/test_exception_2.out +++ b/tests/core/test_exceptions_2.out diff --git a/tests/core/test_multiexception.in b/tests/core/test_exceptions_multi.in index 5453d11c..5453d11c 100644 --- a/tests/core/test_multiexception.in +++ b/tests/core/test_exceptions_multi.in diff --git a/tests/core/test_multiexception.out b/tests/core/test_exceptions_multi.out index 33efe46e..33efe46e 100644 --- a/tests/core/test_multiexception.out +++ b/tests/core/test_exceptions_multi.out diff --git a/tests/core/test_std_exception.in b/tests/core/test_exceptions_std.in index 4b5905d8..4b5905d8 100644 --- a/tests/core/test_std_exception.in +++ b/tests/core/test_exceptions_std.in diff --git a/tests/core/test_std_exception.out b/tests/core/test_exceptions_std.out index c1660de4..c1660de4 100644 --- a/tests/core/test_std_exception.out +++ b/tests/core/test_exceptions_std.out diff --git a/tests/exceptions/typed.cpp b/tests/core/test_exceptions_typed.in index a2b77fee..a2b77fee 100644 --- a/tests/exceptions/typed.cpp +++ b/tests/core/test_exceptions_typed.in diff --git a/tests/exceptions/output.txt b/tests/core/test_exceptions_typed.out index 718f189a..718f189a 100644 --- a/tests/exceptions/output.txt +++ b/tests/core/test_exceptions_typed.out diff --git a/tests/core/test_white_list_exception.in b/tests/core/test_exceptions_white_list.in index 2944f9fe..2944f9fe 100644 --- a/tests/core/test_white_list_exception.in +++ b/tests/core/test_exceptions_white_list.in diff --git a/tests/core/test_white_list_exception.out b/tests/core/test_exceptions_white_list.out index 62e1a81c..62e1a81c 100644 --- a/tests/core/test_white_list_exception.out +++ b/tests/core/test_exceptions_white_list.out diff --git a/tests/test_core.py b/tests/test_core.py index cda5b759..841800df 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1290,24 +1290,24 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co self.emcc_args.pop() ; self.emcc_args.pop() # disable closure to work around a closure bug self.do_run(src, 'Throw...Construct...Caught...Destruct...Throw...Construct...Copy...Caught...Destruct...Destruct...') - def test_exception_2(self): + def test_exceptions_2(self): if self.emcc_args is None: return self.skip('need emcc to add in libcxx properly') Settings.DISABLE_EXCEPTION_CATCHING = 0 - test_path = path_from_root('tests', 'core', 'test_exception_2') + test_path = path_from_root('tests', 'core', 'test_exceptions_2') src, output = (test_path + s for s in ('.in', '.out')) self.do_run_from_file(src, output) - def test_white_list_exception(self): + def test_exceptions_white_list(self): if os.environ.get('EMCC_FAST_COMPILER') == '1': return self.skip('todo in fastcomp') Settings.DISABLE_EXCEPTION_CATCHING = 2 Settings.EXCEPTION_CATCHING_WHITELIST = ["__Z12somefunctionv"] Settings.INLINING_LIMIT = 50 # otherwise it is inlined and not identified - test_path = path_from_root('tests', 'core', 'test_white_list_exception') + test_path = path_from_root('tests', 'core', 'test_exceptions_white_list') src, output = (test_path + s for s in ('.in', '.out')) self.do_run_from_file(src, output) @@ -1315,7 +1315,7 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co Settings.DISABLE_EXCEPTION_CATCHING = 0 Settings.EXCEPTION_CATCHING_WHITELIST = [] - def test_uncaught_exception(self): + def test_exceptions_uncaught(self): if self.emcc_args is None: return self.skip('no libcxx inclusion without emcc') Settings.DISABLE_EXCEPTION_CATCHING = 0 @@ -1354,29 +1354,31 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co ''' self.do_run(src, 'success') - def test_typed_exceptions(self): - Settings.DISABLE_EXCEPTION_CATCHING = 0 - Settings.SAFE_HEAP = 0 # Throwing null will cause an ignorable null pointer access. - src = open(path_from_root('tests', 'exceptions', 'typed.cpp'), 'r').read() - expected = open(path_from_root('tests', 'exceptions', 'output.txt'), 'r').read() - self.do_run(src, expected) + def test_exceptions_typed(self): + Settings.DISABLE_EXCEPTION_CATCHING = 0 + Settings.SAFE_HEAP = 0 # Throwing null will cause an ignorable null pointer access. + + test_path = path_from_root('tests', 'core', 'test_exceptions_typed') + src, output = (test_path + s for s in ('.in', '.out')) + + self.do_run_from_file(src, output) - def test_multiexception(self): + def test_exceptions_multi(self): if os.environ.get('EMCC_FAST_COMPILER') == '1': return self.skip('todo in fastcomp') Settings.DISABLE_EXCEPTION_CATCHING = 0 - test_path = path_from_root('tests', 'core', 'test_multiexception') + test_path = path_from_root('tests', 'core', 'test_exceptions_multi') src, output = (test_path + s for s in ('.in', '.out')) self.do_run_from_file(src, output) - def test_std_exception(self): + def test_exceptions_std(self): if self.emcc_args is None: return self.skip('requires emcc') Settings.DISABLE_EXCEPTION_CATCHING = 0 self.emcc_args += ['-s', 'SAFE_HEAP=0'] - test_path = path_from_root('tests', 'core', 'test_std_exception') + test_path = path_from_root('tests', 'core', 'test_exceptions_std') src, output = (test_path + s for s in ('.in', '.out')) self.do_run_from_file(src, output) |