diff options
author | DJ Houghton | 2011-01-24 16:02:43 +0000 |
---|---|---|
committer | DJ Houghton | 2011-01-24 16:02:43 +0000 |
commit | f622ef7a68223a8dd991609d22334648a663534c (patch) | |
tree | d794312a2923b5dce592600996763701a6064088 /bundles | |
parent | 800df20b330e018c5f30aaeb2019a010942a53e0 (diff) | |
download | rt.equinox.p2-f622ef7a68223a8dd991609d22334648a663534c.tar.gz rt.equinox.p2-f622ef7a68223a8dd991609d22334648a663534c.tar.xz rt.equinox.p2-f622ef7a68223a8dd991609d22334648a663534c.zip |
Ensure platform binary was extracted ok.v20110124-1115
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java index 0297aa06f..303bc12e8 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java @@ -81,8 +81,12 @@ public class AbstractReconcilerTest extends AbstractProvisioningTest { } else { untar("1.0", file); } - File exe = new File(output, "eclipse/eclipse"); - assertTrue("Executable not found after extracting: " + file.getAbsolutePath() + " to: " + output, exe.exists()); + File exe = new File(output, "eclipse/eclipse.exe"); + if (!exe.exists()) { + exe = new File(output, "eclipse/eclipse"); + if (!exe.exists()) + fail("Executable file: " + exe.getAbsolutePath() + "(or .exe) not found after extracting: " + file.getAbsolutePath() + " to: " + output); + } initialized = true; } @@ -190,6 +194,7 @@ public class AbstractReconcilerTest extends AbstractProvisioningTest { file = new File(property); assertNotNull(message, file); assertTrue(message, file.exists()); + assertTrue("File is zero length: " + file.getAbsolutePath(), file.length() > 0); return file; } @@ -221,6 +226,7 @@ public class AbstractReconcilerTest extends AbstractProvisioningTest { String message = "Need to set the \"org.eclipse.equinox.p2.reconciler.tests.platform.archive\" system property with a valid path to the platform binary drop or copy the archive to be a sibling of the install folder."; assertNotNull(message, file); assertTrue(message, file.exists()); + assertTrue("File is zero length: " + file.getAbsolutePath(), file.length() > 0); return file; } |