Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-77

Add support for enabling assertions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Nightly Builds
    • 1.0.2
    • None
    • None
    • Operating System: other
      Platform: Other

    • 30431

    Description

      During testing, it's useful to enable assertions in a program, when it's run
      under the daemon server. This is easy enough:

      — commons-daemon/src/native/unix/native/arguments.c.orig 2004-08-02
      20:08:39.063044304 +1200
      +++ commons-daemon/src/native/unix/native/arguments.c 2004-08-02
      20:08:39.063044304 +1200
      @@ -169,6 +169,9 @@
      } else if (strstr(argv[x],"-X")==argv[x])

      { args->opts[args->onum++]=strdup(argv[x]); + }

      else if (strstr(argv[x],"-ea")==argv[x])

      { + args->opts[args->onum++]=strdup(argv[x]); + }

      else if (strstr(argv[x],"-")==argv[x]) {
      log_error("Invalid option %s",argv[x]);
      return(NULL);

      Attachments

        Activity

          People

            Unassigned Unassigned
            lyricnz@hotmail.com Simon Roberts
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: