|
From: <den...@us...> - 2010-11-02 17:48:03
|
Revision: 147
http://dsim.svn.sourceforge.net/dsim/?rev=147&view=rev
Author: denis_arnaud
Date: 2010-11-02 17:47:57 +0000 (Tue, 02 Nov 2010)
Log Message:
-----------
[Test] Fixed the DB issue (however, a local MySQL instance must run, and the sim_dsim database must have been created).
Modified Paths:
--------------
trunk/dsim/test/dsim/SimulationTestSuite.cpp
Modified: trunk/dsim/test/dsim/SimulationTestSuite.cpp
===================================================================
--- trunk/dsim/test/dsim/SimulationTestSuite.cpp 2010-11-02 17:45:52 UTC (rev 146)
+++ trunk/dsim/test/dsim/SimulationTestSuite.cpp 2010-11-02 17:47:57 UTC (rev 147)
@@ -45,28 +45,21 @@
// Initialise the simulation context
const stdair::BasLogParams lLogParams (stdair::LOG::DEBUG, logOutputFile);
- const stdair::BasDBParams lDBParams ("dsim", "dsim",
- "localhost", "3306",
+ const stdair::BasDBParams lDBParams ("dsim", "dsim", "localhost", "3306",
"sim_dsim");
DSIM::DSIM_Service dsimService (lLogParams, lDBParams,
lScheduleInputFilename, lODInputFilename,
- lDemandInputFilename, lFareInputFilename);
+ lFareInputFilename, lDemandInputFilename);
// Perform a simulation
dsimService.simulate();
-
+
} catch (const DSIM::RootException& otexp) {
- std::cerr << "Standard exception: " << otexp.what() << std::endl;
- return;
+ std::cerr << "DSim exception: " << otexp.what() << std::endl;
} catch (const std::exception& stde) {
std::cerr << "Standard exception: " << stde.what() << std::endl;
- return;
-
- } catch (...) {
- return;
}
-
}
// //////////////////////////////////////////////////////////////////////
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|