Mercurial Unit Test HgExeTest fails under Windows

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Inside the HgExeTest unit test, the HgExe.pathEquals asserts for URI's starting with file:/ fail under windows. For example:

      assertTrue(HgExe.pathEquals("file:/var/hg/stuff", "/var/hg/stuff"));

      In the above case, file:/var/hg/stuff resolves to C:/var/hg/stuff rather than /var/hg/stuff (so there is an additional C: prefix).

      This could be 'fixed' by checking if System.getProperty("os.name").contains( "Windows" ) and then pre pending a drive letter + colon, however it is not clear to me if this will defeat the purpose of this test (or indeed exactly what the purpose of this test is).

            Assignee:
            Jesse Glick
            Reporter:
            Steven Craft
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: