diff --git a/test/langtools/tools/javac/modules/RequiresTransitiveTest.java b/test/langtools/tools/javac/modules/RequiresTransitiveTest.java index 846d1857bda39..03f34e9611311 100644 --- a/test/langtools/tools/javac/modules/RequiresTransitiveTest.java +++ b/test/langtools/tools/javac/modules/RequiresTransitiveTest.java @@ -343,7 +343,7 @@ public void testTransitiveModuleName(Path base) throws Exception { .sourcepath(src) .files(findJavaFiles(src)) .outdir(classes) - .run() + .run(Task.Expect.FAIL) .writeAll() .getOutputLines(Task.OutputKind.DIRECT);