8177017: com/oracle/security/ucrypto/TestAES.java fails intermittently
Skips CFB128 related cases on Solaris pre-11.3 versions. Reviewed-by: valeriep
This commit is contained in:
parent
7391f2dac4
commit
618b1dbbfb
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 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
|
||||
@ -680,5 +680,26 @@ public final class Utils {
|
||||
String.format("A mandatory property '%s' isn't set", propName));
|
||||
return prop;
|
||||
}
|
||||
|
||||
/*
|
||||
* Run uname with specified arguments.
|
||||
*/
|
||||
public static OutputAnalyzer uname(String... args) throws Throwable {
|
||||
String[] cmds = new String[args.length + 1];
|
||||
cmds[0] = "uname";
|
||||
System.arraycopy(args, 0, cmds, 1, args.length);
|
||||
return ProcessTools.executeCommand(cmds);
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns the system distro.
|
||||
*/
|
||||
public static String distro() {
|
||||
try {
|
||||
return uname("-v").asLines().get(0);
|
||||
} catch (Throwable t) {
|
||||
throw new RuntimeException("Failed to determine distro.", t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user