commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30431] New: - Add support for enabling assertions
Date Mon, 02 Aug 2004 10:10:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30431>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30431

Add support for enabling assertions

           Summary: Add support for enabling assertions
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Daemon
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: lyricnz@hotmail.com


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);

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message