mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8376151: Test javax/swing/JFileChooser/4966171/bug4966171.java is failing with OOME
Reviewed-by: prr, azvegint, aivanov
This commit is contained in:
parent
82bd3831b0
commit
12570be64a
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2011, 2026, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -50,8 +50,8 @@ public final class bug4966171 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void test() {
|
private static void test() {
|
||||||
// Will run the test no more than 10 seconds per L&F
|
// Will run the test no more than 5 seconds per L&F
|
||||||
long endtime = System.nanoTime() + TimeUnit.SECONDS.toNanos(10);
|
long endtime = System.nanoTime() + TimeUnit.SECONDS.toNanos(5);
|
||||||
while (System.nanoTime() < endtime) {
|
while (System.nanoTime() < endtime) {
|
||||||
try {
|
try {
|
||||||
var byteOut = new ByteArrayOutputStream();
|
var byteOut = new ByteArrayOutputStream();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user