8166837: [TESTBUG] Fix tests on Linux/s390x

Reviewed-by: simonis
This commit is contained in:
Goetz Lindenmaier 2016-10-31 14:13:03 +01:00
parent e935e7cb1e
commit 04eb6a6783
4 changed files with 6 additions and 8 deletions

View File

@ -122,7 +122,7 @@ esac
# Skip unsupported platforms
case `uname -m` in
arm* | ppc* )
arm* | ppc* | s390* )
echo "Test passed. Not supported on current architecture."
exit 0
;;

View File

@ -44,7 +44,7 @@ import jdk.testlibrary.Utils;
import jdk.testlibrary.OutputAnalyzer;
import jdk.testlibrary.ProcessTools;
import jdk.test.lib.apps.LingeredApp;
import jdk.testlibrary.Platform;
import jdk.test.lib.Platform;
public class BasicLauncherTest {
@ -230,8 +230,7 @@ public class BasicLauncherTest {
Arrays.asList(toolArgs));
}
public static void main(String[] args)
throws IOException {
public static void main(String[] args) throws Exception {
if (!Platform.shouldSAAttach()) {
// Silently skip the test if we don't have enough permissions to attach

View File

@ -41,7 +41,7 @@ import jdk.testlibrary.JDKToolLauncher;
import jdk.testlibrary.OutputAnalyzer;
import jdk.testlibrary.ProcessTools;
import jdk.test.lib.apps.LingeredApp;
import jdk.testlibrary.Platform;
import jdk.test.lib.Platform;
public class HeapDumpTest {
@ -109,8 +109,7 @@ public class HeapDumpTest {
dump.delete();
}
public static void main(String[] args)
throws IOException {
public static void main(String[] args) throws Exception {
if (!Platform.shouldSAAttach()) {
// Silently skip the test if we don't have enough permissions to attach

View File

@ -30,7 +30,7 @@ import java.util.Map;
import jdk.test.lib.apps.LingeredApp;
import jdk.testlibrary.Utils;
import jdk.testlibrary.Platform;
import jdk.test.lib.Platform;
/*
* @test