[zypp-commit] r11354 - /trunk/libzypp/tests/include/TestSetup.h
Author: mlandres Date: Wed Oct 15 13:55:31 2008 New Revision: 11354 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11354&view=rev Log: add logline to TestSetup Modified: trunk/libzypp/tests/include/TestSetup.h Modified: trunk/libzypp/tests/include/TestSetup.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/include/TestSetup.h?rev=11354&r1=11353&r2=11354&view=diff ============================================================================== --- trunk/libzypp/tests/include/TestSetup.h (original) +++ trunk/libzypp/tests/include/TestSetup.h Wed Oct 15 13:55:31 2008 @@ -23,6 +23,9 @@ /** Build a test environment below a temp. root directory. * If a \c rootdir_r was provided to the ctor, this directory * will be used and it will \b not be removed. + * + * \note The lifetime of this objects is the lifetime of the temp. root directory. + * * \code * #include "TestSetup.h" * @@ -46,6 +49,9 @@ TestSetup( const Pathname & rootdir_r, const Arch & sysarch_r = Arch() ) { _ctor( rootdir_r, sysarch_r ); } + ~TestSetup() + { USR << "DELETE TESTSETUP below " << _rootdir << endl; } + public: const Pathname & root() const { return _rootdir; } @@ -105,6 +111,7 @@ if ( ! sysarch_r.empty() ) ZConfig::instance().setSystemArchitecture( sysarch_r ); + USR << "CREATED TESTSETUP below " << _rootdir << endl; } private: filesystem::TmpDir _tmprootdir; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
mlandres@svn.opensuse.org