Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk17 Public archive

Commit cce8da2

Browse files
committed
8268602: a couple runtime/os tests don't check exit code
Reviewed-by: dholmes
1 parent da043e9 commit cce8da2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/hotspot/jtreg/runtime/os/AvailableProcessors.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -87,6 +87,7 @@ public static void main(String[] args) throws Exception {
8787
System.out.println("Final command line: " +
8888
ProcessTools.getCommandLine(pb));
8989
OutputAnalyzer output = ProcessTools.executeProcess(pb);
90+
output.shouldHaveExitValue(0);
9091
output.shouldContain(SUCCESS_STRING);
9192
}
9293
}

test/hotspot/jtreg/runtime/os/TestUseCpuAllocPath.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -47,6 +47,7 @@ public static void main(String[] args) throws Exception {
4747
"-version");
4848

4949
OutputAnalyzer output = new OutputAnalyzer(pb.start());
50+
output.shouldHaveExitValue(0);
5051
output.shouldContain(SUCCESS_STRING);
5152
}
5253
}

0 commit comments

Comments
 (0)