When one adds @ignore tag to a test description like:
/*
* @test
* @ignore bug
* @library lib
* @run main/othervm Test2
*/
public class Test2 {
public static void main(String args[]) {
System.out.println("Hello world");
}
}
and then run this test as:
jtreg -ignore:run Test2.java
He or she will get an error:
test result: Error. Parse Exception: `@library' must appear before first `@run'
Which is very confusing... Because library goes before run.
It would be better to report that
`@library' must appear before first action tag (`@run', '@igonre',...)
/*
* @test
* @ignore bug
* @library lib
* @run main/othervm Test2
*/
public class Test2 {
public static void main(String args[]) {
System.out.println("Hello world");
}
}
and then run this test as:
jtreg -ignore:run Test2.java
He or she will get an error:
test result: Error. Parse Exception: `@library' must appear before first `@run'
Which is very confusing... Because library goes before run.
It would be better to report that
`@library' must appear before first action tag (`@run', '@igonre',...)