X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=test%2Fsimplecmd.cpp;fp=test%2Fsimplecmd.cpp;h=9c1472b4faf8ecf535626592dfd714a560fbd6b0;hp=b48fab6def40a0e96a4c4243ee6502c1e64985f5;hb=a7170401dd90dc79cc7d7a808cfe18a06c7e983b;hpb=d184c64894e6c4f3adb9467078acfc9e7446664a diff --git a/test/simplecmd.cpp b/test/simplecmd.cpp index b48fab6..9c1472b 100644 --- a/test/simplecmd.cpp +++ b/test/simplecmd.cpp @@ -19,17 +19,17 @@ #include #include + +#include +#include +#include + #include #include #include #include #include -#include -#include -#include -#include - using namespace std; using namespace libt2n; using namespace CppUnit; @@ -69,6 +69,7 @@ class testfunc_res : public result } }; + class testfunc_cmd : public libt2n::command { private: @@ -78,7 +79,6 @@ class testfunc_cmd : public libt2n::command template void serialize(Archive & ar, const unsigned int version) { - cerr << "ser: testfunc_cmd" << endl; ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(libt2n::command); ar & BOOST_SERIALIZATION_NVP(param); } @@ -98,6 +98,7 @@ class testfunc_cmd : public libt2n::command } }; +#include BOOST_CLASS_EXPORT(testfunc_cmd) BOOST_CLASS_EXPORT(testfunc_res) @@ -134,7 +135,6 @@ class test_simplecmd : public TestFixture // child { socket_server ss("./socket"); - ss.set_logging(&cerr,debug); command_server cs(ss); // max 10 sec @@ -151,6 +151,7 @@ class test_simplecmd : public TestFixture // wait till server is up sleep(1); socket_client_connection sc("./socket"); + sc.set_logging(&cerr,debug); command_client cc(sc); result_container rc;