Remove uncaught_exception uses in tests 38/49538/6
authorLukasz Kostyra <l.kostyra@samsung.com>
Tue, 6 Oct 2015 13:18:25 +0000 (15:18 +0200)
committerLukasz Kostyra <l.kostyra@samsung.com>
Thu, 10 Dec 2015 13:43:19 +0000 (14:43 +0100)
commit341503434c437571d02c4f8d4eaa7aaf4c489f2f
treecf6d561c3399f5da037e74cc487a73eb9e536673
parenta3cb321124d97faff7613fe3d8e57c39407120ce
Remove uncaught_exception uses in tests

[Bug/Feature]   uncaught_exception is bugged since 2008 and can return a false
                result on some specific situations (refer to
                https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37477 for more
                info).
                Some tests (especially Cynara Agent) relied on uncaught_exception,
                which when failed resulted in double-throwing. This caused instant
                test termination and emitted SIGABRT.
[Solution]      Remove uncaught_exception calls, reorganize some test parts to
                avoid throws propagating outside destructors.
                Additionally, minor corrections to boilerplates (copyright date)
                were made.
[Verification]  Build, install, run tests several times on mobile image. The
                tests should not receive SIGABRT during Cynara Agent tests.
                Test results should be unaltered (some of the tests fail due
                to timeouts).

Change-Id: Iab282e9cac8bd53a69bb60d84511cd6829540037
src/cynara-tests/common/cynara_test_client_async_client.cpp
src/cynara-tests/common/cynara_test_client_async_client.h
src/cynara-tests/common/cynara_test_client_async_request_monitor.cpp
src/cynara-tests/common/cynara_test_client_async_request_monitor.h
src/cynara-tests/common/cynara_test_cynara_mask.cpp
src/cynara-tests/common/cynara_test_cynara_mask.h
src/framework/include/dpl/test/test_runner.h
src/framework/src/test_runner.cpp
src/security-server-tests/security_server_tests_password.cpp