8151352: jdk/test/sample fails with "effective library path is outside the test suite"
Reviewed-by: darcy
This commit is contained in:
parent
7f3c7fe56b
commit
8041d8453e
1
jdk/test/sample/TEST.properties
Normal file
1
jdk/test/sample/TEST.properties
Normal file
@ -0,0 +1 @@
|
||||
external.lib.roots = ../../
|
@ -25,9 +25,9 @@
|
||||
/* @test
|
||||
* @summary Test chat server chatserver test
|
||||
*
|
||||
* @library ../../../src/sample/share/nio/chatserver
|
||||
* @library /src/sample/share/nio/chatserver
|
||||
* @build ChatTest ChatServer Client ClientReader DataReader MessageReader NameReader
|
||||
* @run main ChatTest
|
||||
* @run testng ChatTest
|
||||
*/
|
||||
|
||||
import java.io.*;
|
||||
@ -38,10 +38,13 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CyclicBarrier;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
public class ChatTest {
|
||||
public static int listeningPort = 0;
|
||||
|
||||
public static void main(String[] args) throws Throwable {
|
||||
@Test
|
||||
public static void doTest() throws Throwable {
|
||||
testStartStop();
|
||||
testPortOpen();
|
||||
testAsksForName();
|
||||
|
@ -25,14 +25,16 @@
|
||||
/* @test
|
||||
* @summary Test MergeSort
|
||||
*
|
||||
* @library ../../../src/sample/share/forkjoin/mergesort
|
||||
* @library /src/sample/share/forkjoin/mergesort
|
||||
* @build MergeSortTest MergeDemo MergeSort
|
||||
* @run main MergeSortTest
|
||||
* @run testng MergeSortTest
|
||||
*/
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Random;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
public class MergeSortTest {
|
||||
private Random random;
|
||||
private MergeSort target;
|
||||
@ -42,7 +44,8 @@ public class MergeSortTest {
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
@Test
|
||||
public static void doTest() {
|
||||
MergeSortTest test = new MergeSortTest(new Random(), new MergeSort(Runtime.getRuntime().availableProcessors() * 4));
|
||||
test.run();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user