--- old/test/testlibrary/com/oracle/java/testlibrary/InputArguments.java 2013-09-12 23:29:45.154070655 +0200 +++ new/test/testlibrary/com/oracle/java/testlibrary/InputArguments.java 2013-09-12 23:29:45.070070659 +0200 @@ -39,13 +39,19 @@ } /** - * Returns true if {@code arg} is an input argument to the VM. + * Returns true if {@code prefix} is the start of an input argument to the + * VM. * - * @param arg The name of the argument. - * @return {@code true} if the given argument is an input argument, - * otherwise {@code false}. + * @param prefix The start of the argument. + * @return {@code true} if the given argument is the start of an input + * argument, otherwise {@code false}. */ - public static boolean contains(String arg) { - return args.contains(arg); + public static boolean contains(String prefix) { + for (String arg : args) { + if (arg.startsWith(prefix)) { + return true; + } + } + return false; } }