File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
test/jdk/tools/jpackage/share Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 36
36
import java .util .stream .Stream ;
37
37
import jdk .jpackage .test .TKit ;
38
38
import jdk .jpackage .test .JPackageCommand ;
39
+ import jdk .jpackage .test .JPackageStringBundle ;
39
40
import jdk .jpackage .test .JavaAppDesc ;
40
41
import jdk .jpackage .test .PackageTest ;
41
42
import jdk .jpackage .test .HelloApp ;
@@ -381,7 +382,10 @@ public void testTemp(TestTempType type) throws IOException {
381
382
);
382
383
383
384
if (TestTempType .TEMPDIR_NOT_EMPTY .equals (type )) {
384
- pkgTest .setExpectedExitCode (1 ).addBundleVerifier (cmd -> {
385
+ pkgTest .setExpectedExitCode (1 ).addInitializer (cmd -> {
386
+ cmd .validateOutput (JPackageStringBundle .MAIN .cannedFormattedString (
387
+ "ERR_BuildRootInvalid" , cmd .getArgumentValue ("--temp" )));
388
+ }).addBundleVerifier (cmd -> {
385
389
// Check jpackage didn't use the supplied directory.
386
390
Path tempDir = Path .of (cmd .getArgumentValue ("--temp" ));
387
391
TKit .assertDirectoryContent (tempDir ).match (Path .of ("foo.txt" ));
You can’t perform that action at this time.
0 commit comments