aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2014-01-18 13:43:39 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-01-18 14:11:57 +0700
commit7b47897f853989c10921745d1556d998d78ec295 (patch)
tree7c68f3f7a959a45dcc15835e35731b01bcf005ee /tests
parentf138d08629386110156ce8426ce57f7388c4cae0 (diff)
catched -> caught
Diffstat (limited to 'tests')
-rw-r--r--tests/core/test_multiexception.in6
-rw-r--r--tests/test_core.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/core/test_multiexception.in b/tests/core/test_multiexception.in
index 46acbbf3..5453d11c 100644
--- a/tests/core/test_multiexception.in
+++ b/tests/core/test_multiexception.in
@@ -22,9 +22,9 @@ void setjmp_func(jmp_state* s, int level) {
s->jmp = c_jmp;
setjmp_func(s, level + 1);
}
- catch (int catched_eid) {
- printf("caught %d\n", catched_eid);
- if (catched_eid == c_jmp) {
+ catch (int caught_eid) {
+ printf("caught %d\n", caught_eid);
+ if (caught_eid == c_jmp) {
printf("setjmp exception execution path, level: %d, prev_jmp: %d\n",
level, prev_jmp);
if (prev_jmp != -1) {
diff --git a/tests/test_core.py b/tests/test_core.py
index f5d18e45..cda5b759 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -1269,7 +1269,7 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co
}
catch (MyException & e)
{
- std::cout << "Catched...";
+ std::cout << "Caught...";
}
try
@@ -1278,7 +1278,7 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co
}
catch (MyException e)
{
- std::cout << "Catched...";
+ std::cout << "Caught...";
}
return 0;
@@ -1288,7 +1288,7 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co
Settings.DISABLE_EXCEPTION_CATCHING = 0
if '-O2' in self.emcc_args:
self.emcc_args.pop() ; self.emcc_args.pop() # disable closure to work around a closure bug
- self.do_run(src, 'Throw...Construct...Catched...Destruct...Throw...Construct...Copy...Catched...Destruct...Destruct...')
+ self.do_run(src, 'Throw...Construct...Caught...Destruct...Throw...Construct...Copy...Caught...Destruct...Destruct...')
def test_exception_2(self):
if self.emcc_args is None: return self.skip('need emcc to add in libcxx properly')