aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-27 04:59:48 +0200
committerSven Gothel <[email protected]>2011-10-27 04:59:48 +0200
commitef30b77fab27262f8b5ef3f98880c0caec30bab5 (patch)
treec6242d5c742afdd3d5815f490b5ceb61a871423e /src/junit/com/jogamp/common/util
parentfa5969168440a01fab814df78a3d23d10c27f72d (diff)
Fix VersionNumber cstr w/ string parsing: cutt-off non-digit-parts, suppress exceptions
Diffstat (limited to 'src/junit/com/jogamp/common/util')
-rw-r--r--src/junit/com/jogamp/common/util/TestPlatform01.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/junit/com/jogamp/common/util/TestPlatform01.java b/src/junit/com/jogamp/common/util/TestPlatform01.java
index 1266c45..c10bf0b 100644
--- a/src/junit/com/jogamp/common/util/TestPlatform01.java
+++ b/src/junit/com/jogamp/common/util/TestPlatform01.java
@@ -37,6 +37,25 @@ import com.jogamp.common.os.Platform;
public class TestPlatform01 {
@Test
+ public void testInfo00() {
+ System.err.println();
+ System.err.println();
+ System.err.println("OS name/type: "+Platform.getOSName()+", "+Platform.getOSType());
+ System.err.println("OS version: "+Platform.getOSVersion()+", "+Platform.getOSVersionNumber());
+ System.err.println();
+ System.err.println("Arch, CPU: "+Platform.getArchName()+", "+Platform.getCPUType()+"/"+Platform.getCPUFamily());
+ System.err.println("OS/Arch: "+Platform.getOSAndArch());
+ System.err.println();
+ System.err.println("Java runtime: "+Platform.getJavaRuntimeName());
+ System.err.println("Java vendor[name/url]: "+Platform.getJavaVendor()+"/"+Platform.getJavaVendorURL());
+ System.err.println("Java version, vm: "+Platform.getJavaVersion()+", "+Platform.getJavaVMName());
+ System.err.println();
+ System.err.println("MD: "+Platform.getMachineDescription());
+ System.err.println();
+ System.err.println();
+ }
+
+ @Test
public void testPageSize01() {
final MachineDescription machine = Platform.getMachineDescription();
final int ps = machine.pageSizeInBytes();