From 89ee5fe59b1323a9a13eb978e08de6cd82126d48 Mon Sep 17 00:00:00 2001 From: Benoit Lamarche Date: Mon, 9 Mar 2015 16:17:13 +0100 Subject: Fix testCommandLineError002 The test used to check that it printed the ECJ usage. We don't want that anymore. Let's check that Jack does not crash and does not print anything, for now at least. Change-Id: I981b22be56382277c19daffbdf13f1fd32fbbab0 --- jack-tests/tests/com/android/jack/error/CommandLineErrorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 ca85cba..30379d5 100644 --- a/jack-tests/tests/com/android/jack/error/CommandLineErrorTest.java +++ b/jack-tests/tests/com/android/jack/error/CommandLineErrorTest.java @@ -41,7 +41,7 @@ public class CommandLineErrorTest { } /** - * Checks that compilation end correctly when arguments define no source and no import. + * Checks that compilation ends correctly when arguments define no source and no import. */ @Test public void testCommandLineError002() throws Exception { @@ -60,7 +60,7 @@ public class CommandLineErrorTest { /* zipFile = */ false, ite.getSourceFolder()); } finally { Assert.assertEquals("", errOut.toString()); - Assert.assertTrue(out.toString().contains("Usage:")); + Assert.assertEquals("", out.toString()); } } -- cgit v1.1