[SERVER-55] several of the mongod <cmd line param> tests don't work Created: 18/May/09 Updated: 12/Jul/16 Resolved: 19/May/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Aaron Staple | Assignee: | Aaron Staple |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Several of these tests don't work. Which of them can I get rid of? I'll fix the rest and add to buildbot. if ( strcmp(argv[1], "quicktest") == 0 ) { quicktest(); return 0; }if ( strcmp(argv[1], "test2") == 0 ) { return test2(); }if ( strcmp(argv[1], "msg") == 0 ) { // msg(argc >= 3 ? argv[2] : "ping"); const char *m = "ping"; if (argc >= 3) { if (argc > 3) { thePort = atoi(argv[3]); }} msg(m, "127.0.0.1", thePort); return 0; if ( strcmp( argv[1], "testclient") == 0 ) { testClient(); return 0; }if ( strcmp(argv[1], "zzz") == 0 ) { msg(argc >= 3 ? argv[2] : "ping", 1000); return 0; }if ( strcmp(argv[1], "run") == 0 ) { initAndListen(port); return 0; }if ( strcmp(argv[1], "longmsg") == 0 ) { char buf[800000]; memset(buf, 'a', 799999); buf[799999] = 0; buf[799998] = 'b'; buf[0] = 'c'; msg(buf); return 0; } |
| Comments |
| Comment by Aaron Staple [ 19/May/09 ] |
|
will do |