< prev index next >
jdk/test/java/util/zip/ZipFile/MultiThreadedReadTest.java
Print this page
rev 17249 : 8180887: move FileUtils to top level testlibrary
Reviewed-by: duke
*** 1,7 ****
/*
! * Copyright (c) 2014, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2014, 2017, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 22,33 ****
*/
/* @test
* @bug 8038491
* @summary Crash in ZipFile.read() when ZipFileInputStream is shared between threads
! * @library /lib/testlibrary
! * @build jdk.testlibrary.FileUtils
* @run main MultiThreadedReadTest
* @key randomness
*/
import java.io.File;
--- 22,32 ----
*/
/* @test
* @bug 8038491
* @summary Crash in ZipFile.read() when ZipFileInputStream is shared between threads
! * @library /test/lib
* @run main MultiThreadedReadTest
* @key randomness
*/
import java.io.File;
*** 36,46 ****
import java.nio.file.Paths;
import java.util.Random;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;
! import jdk.testlibrary.FileUtils;
public class MultiThreadedReadTest extends Thread {
private static final int NUM_THREADS = 10;
private static final String ZIPFILE_NAME = "large.zip";
--- 35,45 ----
import java.nio.file.Paths;
import java.util.Random;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;
! import jdk.test.lib.util.FileUtils;
public class MultiThreadedReadTest extends Thread {
private static final int NUM_THREADS = 10;
private static final String ZIPFILE_NAME = "large.zip";
< prev index next >