{"action":"created","issue":{"url":"https://api.github.com/repos/google/guava/issues/2130","labels_url":"https://api.github.com/repos/google/guava/issues/2130/labels{/name}","comments_url":"https://api.github.com/repos/google/guava/issues/2130/comments","events_url":"https://api.github.com/repos/google/guava/issues/2130/events","html_url":"https://github.com/google/guava/issues/2130","id":100406171,"number":2130,"title":"guava-tests build is failing on windows ","user":{"login":"AnkushPuri","id":1668453,"avatar_url":"https://avatars.githubusercontent.com/u/1668453?v=3","gravatar_id":"","url":"https://api.github.com/users/AnkushPuri","html_url":"https://github.com/AnkushPuri","followers_url":"https://api.github.com/users/AnkushPuri/followers","following_url":"https://api.github.com/users/AnkushPuri/following{/other_user}","gists_url":"https://api.github.com/users/AnkushPuri/gists{/gist_id}","starred_url":"https://api.github.com/users/AnkushPuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnkushPuri/subscriptions","organizations_url":"https://api.github.com/users/AnkushPuri/orgs","repos_url":"https://api.github.com/users/AnkushPuri/repos","events_url":"https://api.github.com/users/AnkushPuri/events{/privacy}","received_events_url":"https://api.github.com/users/AnkushPuri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/guava/labels/package:%20base","name":"package: base","color":"207de5"},{"url":"https://api.github.com/repos/google/guava/labels/package:%20io","name":"package: io","color":"207de5"},{"url":"https://api.github.com/repos/google/guava/labels/type:%20defect","name":"type: defect","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-11T20:48:22Z","updated_at":"2015-08-12T16:43:29Z","closed_at":null,"body":"Guava tests build is failing on windows. PFB the failure snippet from surefire-reports. \r\n\r\nguava-tests/target/surefire-reports/com.google.common.base.ThrowablesTest.txt:Tests run: 30, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec <<< FAILURE!\r\nBinary file guava-tests/target/surefire-reports/com.google.common.io.ResourcesTest.txt matches\r\nguava-tests/target/surefire-reports/com.google.common.reflect.ClassPathTest.txt:Tests run: 32, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 0.463 sec <<< FAILURE!\r\n\r\nAnd here is the text for those two files\r\n\r\nTest set: com.google.common.base.ThrowablesTest\r\n-------------------------------------------------------------------------------\r\nTests run: 30, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec <<< FAILURE!\r\ntestGetStackTraceAsString(com.google.common.base.ThrowablesTest)  Time elapsed: 0.002 sec  <<< FAILURE!\r\njunit.framework.AssertionFailedError: null\r\n        at junit.framework.Assert.fail(Assert.java:47)\r\n        at junit.framework.Assert.assertTrue(Assert.java:20)\r\n        at junit.framework.Assert.assertTrue(Assert.java:27)\r\n        at com.google.common.base.ThrowablesTest.testGetStackTraceAsString(ThrowablesTest.java:498)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n        at junit.framework.TestCase.runTest(TestCase.java:168)\r\n        at junit.framework.TestCase.runBare(TestCase.java:134)\r\n        at junit.framework.TestResult$1.protect(TestResult.java:110)\r\n        at junit.framework.TestResult.runProtected(TestResult.java:128)\r\n        at junit.framework.TestResult.run(TestResult.java:113)\r\n        at junit.framework.TestCase.run(TestCase.java:124)\r\n        at junit.framework.TestSuite.runTest(TestSuite.java:243)\r\n        at junit.framework.TestSuite.run(TestSuite.java:238)\r\n        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)\r\n        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)\r\n        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)\r\n        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n        at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)\r\n        at com.sun.proxy.$Proxy0.invoke(Unknown Source)\r\n        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)\r\n        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)\r\n        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)\r\n\r\n\r\n-------------------------------------------------------------------------------\r\nTest set: com.google.common.reflect.ClassPathTest\r\n-------------------------------------------------------------------------------\r\nTests run: 32, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 0.463 sec <<< FAILURE!\r\ntestGetClassPathEntry(com.google.common.reflect.ClassPathTest)  Time elapsed: 0 sec  <<< FAILURE!\r\njunit.framework.AssertionFailedError: expected:<file:/C:/usr/test/dep.jar> but was:<file:/usr/test/dep.jar>\r\n        at junit.framework.Assert.fail(Assert.java:47)\r\n        at junit.framework.Assert.failNotEquals(Assert.java:283)\r\n        at junit.framework.Assert.assertEquals(Assert.java:64)\r\n        at junit.framework.Assert.assertEquals(Assert.java:71)\r\n        at com.google.common.reflect.ClassPathTest.testGetClassPathEntry(ClassPathTest.java:175)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n        at junit.framework.TestCase.runTest(TestCase.java:168)\r\n        at junit.framework.TestCase.runBare(TestCase.java:134)\r\n        at junit.framework.TestResult$1.protect(TestResult.java:110)\r\n        at junit.framework.TestResult.runProtected(TestResult.java:128)\r\n        at junit.framework.TestResult.run(TestResult.java:113)\r\n        at junit.framework.TestCase.run(TestCase.java:124)\r\n        at junit.framework.TestSuite.runTest(TestSuite.java:243)\r\n        at junit.framework.TestSuite.run(TestSuite.java:238)\r\n        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)\r\n        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)\r\n        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)\r\n        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n        at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)\r\n        at com.sun.proxy.$Proxy0.invoke(Unknown Source)\r\n        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)\r\n        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)\r\n        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)\r\n\r\ntestResourceScanner(com.google.common.reflect.ClassPathTest)  Time elapsed: 0.279 sec  <<< FAILURE!\r\n\r\n-Ankush"},"comment":{"url":"https://api.github.com/repos/google/guava/issues/comments/130365992","html_url":"https://github.com/google/guava/issues/2130#issuecomment-130365992","issue_url":"https://api.github.com/repos/google/guava/issues/2130","id":130365992,"user":{"login":"cpovirk","id":1703908,"avatar_url":"https://avatars.githubusercontent.com/u/1703908?v=3","gravatar_id":"","url":"https://api.github.com/users/cpovirk","html_url":"https://github.com/cpovirk","followers_url":"https://api.github.com/users/cpovirk/followers","following_url":"https://api.github.com/users/cpovirk/following{/other_user}","gists_url":"https://api.github.com/users/cpovirk/gists{/gist_id}","starred_url":"https://api.github.com/users/cpovirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpovirk/subscriptions","organizations_url":"https://api.github.com/users/cpovirk/orgs","repos_url":"https://api.github.com/users/cpovirk/repos","events_url":"https://api.github.com/users/cpovirk/events{/privacy}","received_events_url":"https://api.github.com/users/cpovirk/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T16:43:29Z","updated_at":"2015-08-12T16:43:29Z","body":"Thanks for filing the bug!\r\n\r\n`ClassPathTest` is a pretty clear case of our assuming that we're running on a Linux-style filesystem. `ThrowablesTest` is more interesting -- probably a bad assumption that newlines are always represented by `\\n`.\r\n\r\n@cgdecker @cgruber Do we have any way of running our tests regularly on Windows? These shouldn't be hard to fix, but it would be good to have an easy way to test them and a way to make sure errors won't creep back in."}}