From: Robert L. <rle...@us...> - 2007-03-23 11:04:23
|
Update of /cvsroot/ccmtools/ccmtools/test/CppGenerator/supports_exception/impl In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17271/test/CppGenerator/supports_exception/impl Modified Files: _check_Test.cc Log Message: C++: the local home adapter has no longer a dependency to the home's implementation Index: _check_Test.cc =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/test/CppGenerator/supports_exception/impl/_check_Test.cc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** _check_Test.cc 5 Jan 2007 14:17:27 -0000 1.3 --- _check_Test.cc 23 Mar 2007 11:03:44 -0000 1.4 *************** *** 1,4 **** /*** ! * CCM Tools Test Client * * This file was automatically generated by the CCM Tools. --- 1,4 ---- /*** ! * CCM Tools Test Client * * This file was automatically generated by the CCM Tools. *************** *** 6,11 **** * * This test client is part of the mirror component test concept. For each ! * component a corresponding mirror component will be instantiated. ! * All component ports will be connected to the mirror component's ports. * Additionally, developers can add some testing code to validate supported * interfaces as well as component attribute access. --- 6,11 ---- * * This test client is part of the mirror component test concept. For each ! * component a corresponding mirror component will be instantiated. ! * All component ports will be connected to the mirror component's ports. * Additionally, developers can add some testing code to validate supported * interfaces as well as component attribute access. *************** *** 17,20 **** --- 17,21 ---- #include <Components/ccmtools.h> + #include <TestHome_entry.h> #include <TestHome_gen.h> *************** *** 28,33 **** Components::HomeFinder* homeFinder = Components::HomeFinder::Instance(); ! error = deploy_TestHome("TestHome"); ! if(error) { cerr << "BOOTSTRAP ERROR: Can't deploy component homes!" << endl; --- 29,34 ---- Components::HomeFinder* homeFinder = Components::HomeFinder::Instance(); ! error = deploy_TestHome("TestHome"); ! if(error) { cerr << "BOOTSTRAP ERROR: Can't deploy component homes!" << endl; *************** *** 35,40 **** } ! try ! { Test::SmartPtr myTest; TestHome::SmartPtr myTestHome(dynamic_cast<TestHome*>( --- 36,41 ---- } ! try ! { Test::SmartPtr myTest; TestHome::SmartPtr myTestHome(dynamic_cast<TestHome*>( *************** *** 47,51 **** long len = myTest->print(s); assert(len == s.length()); ! try { --- 48,52 ---- long len = myTest->print(s); assert(len == s.length()); ! try { *************** *** 54,68 **** assert(0); } ! catch(Error& e) { cout << "OK: error exception catched! "; ! cout << "(" ! << e.info[0].code << ", " ! << e.info[0].message << ")" << "[ " << e.what() << "]" << endl; } ! ! try { string s = "SuperError"; --- 55,69 ---- assert(0); } ! catch(Error& e) { cout << "OK: error exception catched! "; ! cout << "(" ! << e.info[0].code << ", " ! << e.info[0].message << ")" << "[ " << e.what() << "]" << endl; } ! ! try { string s = "SuperError"; *************** *** 70,74 **** assert(0); } ! catch(SuperError& e) { cout << "OK: super_error exception catched! " --- 71,75 ---- assert(0); } ! catch(SuperError& e) { cout << "OK: super_error exception catched! " *************** *** 76,81 **** << endl; } ! ! try { string s = "FatalError"; --- 77,82 ---- << endl; } ! ! try { string s = "FatalError"; *************** *** 83,89 **** assert(0); } ! catch(FatalError& e) { ! cout << "OK: fatal_error exception catched! " << "[ " << e.what() << "]" << endl; --- 84,90 ---- assert(0); } ! catch(FatalError& e) { ! cout << "OK: fatal_error exception catched! " << "[ " << e.what() << "]" << endl; *************** *** 91,118 **** myTest->remove(); ! } ! catch ( Components::HomeNotFound ) { cout << "DEPLOYMENT ERROR: can't find a home!" << endl; return -1; ! } ! catch ( Components::NotImplemented& e ) { ! cout << "DEPLOYMENT ERROR: function not implemented: " << e.what ( ) << endl; return -1; ! } ! catch ( Components::InvalidName& e ) { ! cout << "DEPLOYMENT ERROR: invalid name during connection: " << e.what ( ) << endl; return -1; } ! catch ( ... ) { cout << "DEPLOYMENT ERROR: there is something wrong!" << endl; error = -1; } ! if (error < 0) { return error; --- 92,119 ---- myTest->remove(); ! } ! catch ( Components::HomeNotFound ) { cout << "DEPLOYMENT ERROR: can't find a home!" << endl; return -1; ! } ! catch ( Components::NotImplemented& e ) { ! cout << "DEPLOYMENT ERROR: function not implemented: " << e.what ( ) << endl; return -1; ! } ! catch ( Components::InvalidName& e ) { ! cout << "DEPLOYMENT ERROR: invalid name during connection: " << e.what ( ) << endl; return -1; } ! catch ( ... ) { cout << "DEPLOYMENT ERROR: there is something wrong!" << endl; error = -1; } ! if (error < 0) { return error; *************** *** 120,129 **** error = undeploy_TestHome("TestHome"); ! if(error) { cerr << "TEARDOWN ERROR: Can't undeploy component homes!" << endl; return error; } ! cout << ">>>> Stop Test Client: " << __FILE__ << endl; } --- 121,130 ---- error = undeploy_TestHome("TestHome"); ! if(error) { cerr << "TEARDOWN ERROR: Can't undeploy component homes!" << endl; return error; } ! cout << ">>>> Stop Test Client: " << __FILE__ << endl; } |