Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-383

ConditionalTest.conditionalConsoleApp_IF_THEN_True fails due to wrong way of creating the aHost property

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.20
    • logback-classic
    • None
    • Mac OS/X 10.6, Java 1.6 64 bit

    Description

      ConditionalTest.conditionalConsoleApp_IF_THEN_True fails on my machine because it constructs the local host in the test using InetAddress.getLocalHost().getCanonicalHostName() whereas ContextUtil uses InetAddress.getLocalHost().getLocalHost(). On my machine the canonical hostname call returns an ip address whereas the localhost call returns a hostname. As they do not match the test fails.

      Fixed on this branch http://github.com/Mahoney/logback/tree/mac-host-bug and pull request submitted.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            mahoney Robert Elliot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: