[St-m-svn] SF.net SVN: st-m:[1878] trunk/src/delayed_launcher_test/DelayedLauncherTest .cpp
Brought to you by:
cnx_glenn
From: <cnx...@us...> - 2011-01-02 22:42:22
|
Revision: 1878 http://st-m.svn.sourceforge.net/st-m/?rev=1878&view=rev Author: cnx_glenn Date: 2011-01-02 22:42:16 +0000 (Sun, 02 Jan 2011) Log Message: ----------- TODO: Fix delayed launcher unit test. Modified Paths: -------------- trunk/src/delayed_launcher_test/DelayedLauncherTest.cpp Modified: trunk/src/delayed_launcher_test/DelayedLauncherTest.cpp =================================================================== --- trunk/src/delayed_launcher_test/DelayedLauncherTest.cpp 2011-01-02 17:26:33 UTC (rev 1877) +++ trunk/src/delayed_launcher_test/DelayedLauncherTest.cpp 2011-01-02 22:42:16 UTC (rev 1878) @@ -53,7 +53,6 @@ DelayedLauncherTestFixture::~DelayedLauncherTestFixture() { ::system("del /f /q \"Resources\\delayedlaunchertest.log\""); - ::system("del /f /q null"); } void DelayedLauncherTestFixture::test_launch_delayed_x( @@ -65,7 +64,7 @@ cmd << " Resources\\delayedlaunchertest.bat\""; std::string strcmd = cmd.str(); - ::system("\"Resources\\delayedlaunchertest.bat\" > null"); + ::system("\"Resources\\delayedlaunchertest.bat\" > nul"); ::system(strcmd.c_str()); unsigned long time = execution_time(); @@ -77,7 +76,7 @@ { std::string strbegintime, strendtime; - std::ifstream file("Resources/delayedlaunchertest.log", std::ios::in); + std::ifstream file("Resources\\delayedlaunchertest.log", std::ios::in); BOOST_REQUIRE(file.is_open()); std::getline(file, strbegintime); std::getline(file, strendtime); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |