Changeset 2010 for box/trunk/test
- Timestamp:
- 16/12/2007 23:52:05 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/test/basicserver/testbasicserver.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/test/basicserver/testbasicserver.cpp
r1572 r2010 437 437 // Launch a basic server 438 438 { 439 int pid = LaunchServer("./test srv1 testfiles/srv1.conf", 440 "testfiles/srv1.pid"); 439 std::string cmd = "./test"; 440 cmd += test_args; 441 cmd += " srv1 testfiles/srv1.conf"; 442 int pid = LaunchServer(cmd, "testfiles/srv1.pid"); 441 443 442 444 TEST_THAT(pid != -1 && pid != 0); … … 481 483 // Launch a test forking server 482 484 { 483 int pid = LaunchServer("./test srv2 testfiles/srv2.conf", 484 "testfiles/srv2.pid"); 485 std::string cmd = "./test"; 486 cmd += test_args; 487 cmd += " srv2 testfiles/srv2.conf"; 488 int pid = LaunchServer(cmd, "testfiles/srv2.pid"); 485 489 486 490 TEST_THAT(pid != -1 && pid != 0); … … 549 553 // Launch a test SSL server 550 554 { 551 int pid = LaunchServer("./test srv3 testfiles/srv3.conf", 552 "testfiles/srv3.pid"); 555 std::string cmd = "./test"; 556 cmd += test_args; 557 cmd += " srv3 testfiles/srv3.conf"; 558 int pid = LaunchServer(cmd, "testfiles/srv3.pid"); 553 559 554 560 TEST_THAT(pid != -1 && pid != 0); … … 628 634 // Launch a test protocol handling server 629 635 { 630 int pid = LaunchServer("./test srv4 testfiles/srv4.conf", 631 "testfiles/srv4.pid"); 636 std::string cmd = "./test"; 637 cmd += test_args; 638 cmd += " srv4 testfiles/srv4.conf"; 639 int pid = LaunchServer(cmd, "testfiles/srv4.pid"); 632 640 633 641 TEST_THAT(pid != -1 && pid != 0);
Note: See TracChangeset
for help on using the changeset viewer.
