|
@@ -41,9 +41,6 @@ public:
|
|
|
getController());
|
|
|
}
|
|
|
|
|
|
- virtual ~DStubControllerTest() {
|
|
|
- }
|
|
|
-
|
|
|
DStubControllerPtr controller_;
|
|
|
};
|
|
|
|
|
@@ -87,7 +84,7 @@ TEST_F(DStubControllerTest, commandLineArgs) {
|
|
|
char* argv[] = { const_cast<char*>("progName"),
|
|
|
const_cast<char*>("-c"),
|
|
|
const_cast<char*>("cfgName"),
|
|
|
- const_cast<char*>("-v") };
|
|
|
+ const_cast<char*>("-d") };
|
|
|
int argc = 4;
|
|
|
EXPECT_NO_THROW(parseArgs(argc, argv));
|
|
|
|
|
@@ -174,7 +171,7 @@ TEST_F(DStubControllerTest, launchProcessInitError) {
|
|
|
char* argv[] = { const_cast<char*>("progName"),
|
|
|
const_cast<char*>("-c"),
|
|
|
const_cast<char*>(DControllerTest::CFG_TEST_FILE),
|
|
|
- const_cast<char*>("-v") };
|
|
|
+ const_cast<char*>("-d") };
|
|
|
int argc = 4;
|
|
|
|
|
|
// Launch the controller in stand alone mode.
|
|
@@ -204,7 +201,7 @@ TEST_F(DStubControllerTest, nonexistantConfigFile) {
|
|
|
char* argv[] = { const_cast<char*>("progName"),
|
|
|
const_cast<char*>("-c"),
|
|
|
const_cast<char*>("bogus-file"),
|
|
|
- const_cast<char*>("-v") };
|
|
|
+ const_cast<char*>("-d") };
|
|
|
int argc = 4;
|
|
|
|
|
|
// Record start time, and invoke launch().
|
|
@@ -216,7 +213,7 @@ TEST_F(DStubControllerTest, missingConfigFileName) {
|
|
|
// command line to run standalone
|
|
|
char* argv[] = { const_cast<char*>("progName"),
|
|
|
const_cast<char*>("-c"),
|
|
|
- const_cast<char*>("-v") };
|
|
|
+ const_cast<char*>("-d") };
|
|
|
int argc = 3;
|
|
|
|
|
|
// Record start time, and invoke launch().
|
|
@@ -227,7 +224,7 @@ TEST_F(DStubControllerTest, missingConfigFileName) {
|
|
|
TEST_F(DStubControllerTest, missingConfigFileArgument) {
|
|
|
// command line to run standalone
|
|
|
char* argv[] = { const_cast<char*>("progName"),
|
|
|
- const_cast<char*>("-v") };
|
|
|
+ const_cast<char*>("-d") };
|
|
|
int argc = 2;
|
|
|
|
|
|
// Record start time, and invoke launch().
|
|
@@ -357,8 +354,8 @@ TEST_F(DStubControllerTest, ioSignals) {
|
|
|
|
|
|
// Setup to raise SIGHUP in 10 ms.
|
|
|
TimedSignal sighup(*getIOService(), SIGHUP, 10);
|
|
|
- TimedSignal sigint(*getIOService(), SIGINT, 10);
|
|
|
- TimedSignal sigterm(*getIOService(), SIGTERM, 10);
|
|
|
+ TimedSignal sigint(*getIOService(), SIGINT, 100);
|
|
|
+ TimedSignal sigterm(*getIOService(), SIGTERM, 200);
|
|
|
|
|
|
// Write the valid, empty, config and then run launch() for 500 ms
|
|
|
time_duration elapsed_time;
|