Branch: Tag:

2018-04-13

2018-04-13 12:28:29 by Martin Karlgren <marty@roxen.com>

WebDAV Testsuite: Put debug messages behind DAV_DEBUG.

4:      import TEST.http.WebDAV;    + #ifdef DAV_DEBUG + #define DAV_WERROR(X...) werror(X) + #else /* !DAV_DEBUG */ + #define DAV_WERROR(X...) + #endif /* DAV_DEBUG */      private string filesystem_dir = "$VARDIR/testsuite/webdav";   // Expanded filesystem_dir.
19:    password);    int count = 0;    foreach (base_uris, Standards.URI base_uri) { -  report_debug("Webdav testsuite: Base URI: %s\n", (string)base_uri); +  DAV_WERROR("Webdav testsuite: Base URI: %s\n", (string)base_uri);    mapping(string:string) base_headers = ([    "host": base_uri->host,    "user-agent": "Roxen WebDAV Tester",
46:    string testdir)    {    ::create(webdav_mount_point, base_uri, base_headers, testdir); -  report_debug("Webdav real_dir: %O\n", real_dir); +  DAV_WERROR("Webdav real_dir: %O\n", real_dir);    Stdio.mkdirhier(real_dir);    }