Mercurial > hg > release > thermostat-0.13
changeset 1190:e7bdfcace2b0
Fix integration tests volume 2.
Reviewed-by: omajid
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-July/007709.html
author | Severin Gehwolf <sgehwolf@redhat.com> |
---|---|
date | Wed, 31 Jul 2013 21:07:28 +0200 |
parents | e9d7209e8c38 |
children | 56e89524791c e810fb4143b5 |
files | integration-tests/src/test/java/com/redhat/thermostat/itest/IntegrationTest.java |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/integration-tests/src/test/java/com/redhat/thermostat/itest/IntegrationTest.java Wed Jul 31 11:57:54 2013 -0400 +++ b/integration-tests/src/test/java/com/redhat/thermostat/itest/IntegrationTest.java Wed Jul 31 21:07:28 2013 +0200 @@ -142,9 +142,15 @@ } catch (IOException e) { // this may happen if storage is already running. e.printStackTrace(); - String stderrContents = storage.getCurrentStandardOutContents(); - System.err.println(stderrContents); - assertFalse(stderrContents.contains("Storage is already running with pid")); + String stdOutContents = storage.getCurrentStandardOutContents(); + + System.err.flush(); + System.out.flush(); + System.err.println("stdout was: -->" + stdOutContents +"<--"); + System.err.println("stderr was: -->" + storage.getCurrentStandardErrContents() + "<--"); + System.err.flush(); + assertFalse(stdOutContents.contains("Storage is already running with pid")); + throw new Exception("Something funny is going on when trying to start storage!", e); } storage.expectClose();