diff options
author | julien.hamaide <julien.hamaide@fishingcactus.com> | 2012-01-12 09:40:05 +0100 |
---|---|---|
committer | julien.hamaide <julien.hamaide@fishingcactus.com> | 2012-01-12 09:40:05 +0100 |
commit | d2cdcc98d3a85772a69834c8cd7db1658c20f749 (patch) | |
tree | d2bfffddd0b393f6a646ecd72c0377877cd84cd8 /tests/runner.py | |
parent | 90f408e5ad1e9971f762c90ffeaa79a1ac4394d7 (diff) |
Fix identation issues
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/tests/runner.py b/tests/runner.py index 035c4c78..1093789c 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -1192,49 +1192,49 @@ if 'benchmark' not in str(sys.argv) and 'sanity' not in str(sys.argv): src = ''' #include <iostream> - - class MyException - { - public: - MyException(){ std::cout << "Construct..."; } + + class MyException + { + public: + MyException(){ std::cout << "Construct..."; } MyException( const MyException & ) { std::cout << "Copy..."; } - ~MyException(){ std::cout << "Destruct..."; } - }; - - int function() - { - std::cout << "Throw..."; - throw MyException(); - } - - int function2() - { - return function(); - } - - int main() - { - try - { - function2(); - } - catch (MyException & e) - { - std::cout << "Catched..."; - } + ~MyException(){ std::cout << "Destruct..."; } + }; + + int function() + { + std::cout << "Throw..."; + throw MyException(); + } + + int function2() + { + return function(); + } + + int main() + { + try + { + function2(); + } + catch (MyException & e) + { + std::cout << "Catched..."; + } try - { - function2(); - } - catch (MyException e) - { - std::cout << "Catched..."; - } - - return 0; - } - ''' + { + function2(); + } + catch (MyException e) + { + std::cout << "Catched..."; + } + + return 0; + } + ''' Settings.DISABLE_EXCEPTION_CATCHING = 0 self.do_run(src, 'Throw...Construct...Catched...Destruct...Throw...Construct...Copy...Catched...Destruct...Destruct...') |