Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / DynAny_Test / test_wrapper.cpp
blobc95c1854038a8fa9a725e057aa61ef4964f3abf2
1 //=============================================================================
2 /**
3 * @file test_wrapper.cpp
5 * This file contains the implementation of the DynAny basic test manager
7 * @author Jeff Parsons <parsons@cs.wustl.edu>
8 */
9 //=============================================================================
12 #if !defined (TEST_WRAPPER_CPP)
13 #define TEST_WRAPPER_CPP
15 #include "test_wrapper.h"
16 #include "ace/Log_Msg.h"
18 // Constructor
19 template <class T>
20 Test_Wrapper<T>::Test_Wrapper (T* t)
21 : test_object_ (t)
25 // Destructor
26 template <class T>
27 Test_Wrapper<T>::~Test_Wrapper ()
29 delete this->test_object_;
32 template <class T>
33 int
34 Test_Wrapper<T>::run_test ()
36 const char* test_name = this->test_object_->test_name ();
38 ACE_DEBUG ((LM_DEBUG,
39 "********************* %C *******************\n\n",
40 test_name));
42 return this->test_object_->run_test ();
45 #endif /* TEST_WRAPPER_CPP */