From f07072818f16d77f9c217a01bbe924c620d54668 Mon Sep 17 00:00:00 2001 From: mikaelpeltier Date: Fri, 27 Feb 2015 15:02:13 +0100 Subject: run method of Jack does not longer throws NothingToDoException Change-Id: If55f57f449a7a8d01573721b22d4fea306ed537e --- jack-tests/tests/com/android/jack/error/CommandLineErrorTest.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'jack-tests') diff --git a/jack-tests/tests/com/android/jack/error/CommandLineErrorTest.java b/jack-tests/tests/com/android/jack/error/CommandLineErrorTest.java index 77b74fb..3dab0b3 100644 --- a/jack-tests/tests/com/android/jack/error/CommandLineErrorTest.java +++ b/jack-tests/tests/com/android/jack/error/CommandLineErrorTest.java @@ -67,7 +67,7 @@ public class CommandLineErrorTest { } /** - * Checks that compilation fails correctly when no source files are passed to ecj. + * Checks that compilation end correctly when no source files are passed to ecj. */ @Test public void testCommandLineError002() throws Exception { @@ -84,9 +84,6 @@ public class CommandLineErrorTest { .addToClasspath(ite.getJackFolder()) .srcToExe(ite.getOutputDexFolder(), /* zipFile = */ false, ite.getSourceFolder()); - Assert.fail(); - } catch (NothingToDoException e) { - // Failure is ok since there is no source files. } finally { Assert.assertEquals("", errOut.toString()); Assert.assertTrue(out.toString().contains("Usage:")); -- cgit v1.1