Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8271222: two runtime/Monitor tests don't check exit code
Reviewed-by: dholmes
  • Loading branch information
iignatev committed Jul 26, 2021
1 parent 049b2ad commit 3c27f919865584bcdcd85577306726afa5412571
@@ -93,6 +93,7 @@ public static void main(String[] args) throws Exception {
"MonitorUsedDeflationThresholdTest", "33");

OutputAnalyzer output_detail = new OutputAnalyzer(pb.start());
output_detail.shouldHaveExitValue(0);

// This mesg means:
// - AvgMonitorsPerThreadEstimate == 1 reduced in_use_list_ceiling
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -95,6 +95,7 @@ public static void main(String[] args) throws Exception {
for (int i = 0; i < logTests.length; i++) {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(logTests[i]);
OutputAnalyzer output = ProcessTools.executeProcess(pb);
output.shouldHaveExitValue(0);
checkOutput(output);
}
}

1 comment on commit 3c27f91

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 3c27f91 Jul 26, 2021

Please sign in to comment.