test/langtools/jdk/jshell/ToolSimpleTest.java
changeset 48259 c0bf7d8af037
parent 47837 ef7aad81c3d6
child 48292 191ae61bd1e9
--- a/test/langtools/jdk/jshell/ToolSimpleTest.java	Wed Dec 13 12:43:38 2017 +0530
+++ b/test/langtools/jdk/jshell/ToolSimpleTest.java	Wed Dec 13 11:27:28 2017 +0100
@@ -216,7 +216,9 @@
     public void testInvalidClassPath() {
         test(
                 a -> assertCommand(a, "/env --class-path snurgefusal",
-                        "|  File 'snurgefusal' for '--class-path' is not found.")
+                        "|  File 'snurgefusal' for '--class-path' is not found."),
+                a -> assertCommand(a, "/env --class-path ?",
+                        "|  File '?' for '--class-path' is not found.")
         );
     }