Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-290

timebasedrollingtest fails on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Tests
    • None
    • Windows XP SP2, Compiler: Microsoft VC 8/SP1, ant build, options -Dwith-apr=..\apr\apr-1.2.12 -Dwith-apr-util=..\apr-util\apr-util-1.2.12

    Description

      The following tests fail on Windows XP with log4cxx SVN668112:

      TimeBasedRollingTest::test3
      Expected file tbr-test3.3 contains 1 log entry, the written file contains 2 log entries

      TimeBasedRollingTest::test6
      Expected file tbr-test6.3 contains 1 log entry, the written file contains 2 log entries

      Maybe this caused by the inaccuracy of apr_sleep() on Windows.

      Logfile:
      ---------------------------
      [exec] Line 248: true != Compare::compare(File(filenames[3]), File(LOG4CXX_STR("witness/rolling/tbr-test3.3")))
      [exec] log4cxx: No writer set for the appender named [].
      [exec] log4cxx: No writer set for the appender named [].
      [exec] log4cxx: No writer set for the appender named [].
      [exec] Line 417: true != Compare::compare(File(filenames[3]), File(LOG4CXX_STR("witness/rolling/tbr-test6.3")))
      [exec] timebasedrollingtest: Waiting until next second and 100 millis.Done waiting.Files [output/test3-2008-06-16_19_37_45] and [witness/rolling/tbr-test3.3] differ on line 1
      [exec] One reads: [TimeBasedRollingTest - Hello---3].
      [exec] Other reads:[TimeBasedRollingTest - Hello---4].
      [exec] --------------------------------
      [exec] Contents of output/test3-2008-06-16_19_37_45:
      [exec] 1 : TimeBasedRollingTest - Hello---3
      [exec] 2 : TimeBasedRollingTest - Hello---4
      [exec] --------------------------------
      [exec] Contents of witness/rolling/tbr-test3.3:
      [exec] 1 : TimeBasedRollingTest - Hello---4
      [exec] Waiting until next second and 100 millis.Done waiting.Waiting until next second and 100 millis.Done waiting.Files [output/test6.log] and [witness/rolling/tbr-test6.3] differ on line 1
      [exec] One reads: [TimeBasedRollingTest - Hello---3].
      [exec] Other reads:[TimeBasedRollingTest - Hello---4].
      [exec] --------------------------------
      [exec] Contents of output/test6.log:
      [exec] 1 : TimeBasedRollingTest - Hello---3
      [exec] 2 : TimeBasedRollingTest - Hello---4
      [exec] --------------------------------
      [exec] Contents of witness/rolling/tbr-test6.3:
      [exec] 1 : TimeBasedRollingTest - Hello---4
      [exec] FAILED 2 of 6
      ---------------------------

      Attachments

        Issue Links

          Activity

            People

              carnold@apache.org Curt Arnold
              michu Michael Waeber
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: