From 7b47897f853989c10921745d1556d998d78ec295 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 18 Jan 2014 13:43:39 +0700 Subject: [PATCH] catched -> caught --- tests/core/test_multiexception.in | 6 +++--- tests/test_core.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/core/test_multiexception.in b/tests/core/test_multiexception.in index 46acbbf3b..5453d11cd 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 f5d18e451..cda5b7593 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')