Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-55

several of the mongod <cmd line param> tests don't work

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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";
      int thePort = DBPort;

      if (argc >= 3) {
      m = argv[2];

      if (argc > 3)

      { thePort = atoi(argv[3]); }

      }

      msg(m, "127.0.0.1", thePort);

      return 0;
      }
      if ( strcmp(argv[1], "msglots") == 0 )

      { msg(argc >= 3 ? argv[2] : "ping", 1000); 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; }

            Assignee:
            aaron Aaron Staple
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: