aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-12-02 02:38:12 +0100
committerSven Gothel <[email protected]>2011-12-02 02:38:12 +0100
commit28f9b90a728ef1d683fa53d9c521af27a389baaf (patch)
tree6581f8691b0d165a265c9bfe81ca1c67837f36b1 /src/junit/com/jogamp/common
parent2a461c6dc4e4ce01bdfe114e72cc69ec08fb2390 (diff)
Fix Test1p2ProcAddressEmitter (static var); Add TestTracer
Diffstat (limited to 'src/junit/com/jogamp/common')
-rw-r--r--src/junit/com/jogamp/common/nio/BuffersTest.java4
-rw-r--r--src/junit/com/jogamp/common/nio/CachedBufferFactoryTest.java4
-rw-r--r--src/junit/com/jogamp/common/nio/TestBuffersFloatDoubleConversion.java4
-rw-r--r--src/junit/com/jogamp/common/nio/TestPointerBufferEndian.java3
-rw-r--r--src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java3
-rw-r--r--src/junit/com/jogamp/common/util/TestArrayHashSet01.java4
-rw-r--r--src/junit/com/jogamp/common/util/TestIOUtil01.java3
-rw-r--r--src/junit/com/jogamp/common/util/TestIteratorIndexCORE.java3
-rw-r--r--src/junit/com/jogamp/common/util/TestJarUtil.java3
-rw-r--r--src/junit/com/jogamp/common/util/TestPlatform01.java3
-rw-r--r--src/junit/com/jogamp/common/util/TestRunnableTask01.java4
-rw-r--r--src/junit/com/jogamp/common/util/TestTempJarCache.java3
-rw-r--r--src/junit/com/jogamp/common/util/TestVersionInfo.java4
-rw-r--r--src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java3
14 files changed, 34 insertions, 14 deletions
diff --git a/src/junit/com/jogamp/common/nio/BuffersTest.java b/src/junit/com/jogamp/common/nio/BuffersTest.java
index 836e46d..675f8e1 100644
--- a/src/junit/com/jogamp/common/nio/BuffersTest.java
+++ b/src/junit/com/jogamp/common/nio/BuffersTest.java
@@ -34,12 +34,14 @@ package com.jogamp.common.nio;
import java.nio.IntBuffer;
import org.junit.Test;
+import com.jogamp.junit.util.TestTracer;
+
import static org.junit.Assert.*;
/**
* @author Michael Bien
*/
-public class BuffersTest {
+public class BuffersTest extends TestTracer {
@Test
public void slice() {
diff --git a/src/junit/com/jogamp/common/nio/CachedBufferFactoryTest.java b/src/junit/com/jogamp/common/nio/CachedBufferFactoryTest.java
index a00f4c9..4157bdf 100644
--- a/src/junit/com/jogamp/common/nio/CachedBufferFactoryTest.java
+++ b/src/junit/com/jogamp/common/nio/CachedBufferFactoryTest.java
@@ -42,6 +42,8 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
+import com.jogamp.junit.util.TestTracer;
+
import static java.lang.System.*;
import static org.junit.Assert.*;
@@ -49,7 +51,7 @@ import static org.junit.Assert.*;
*
* @author Michael Bien
*/
-public class CachedBufferFactoryTest {
+public class CachedBufferFactoryTest extends TestTracer {
private final int BUFFERCOUNT = 120;
diff --git a/src/junit/com/jogamp/common/nio/TestBuffersFloatDoubleConversion.java b/src/junit/com/jogamp/common/nio/TestBuffersFloatDoubleConversion.java
index 0555578..d62cd69 100644
--- a/src/junit/com/jogamp/common/nio/TestBuffersFloatDoubleConversion.java
+++ b/src/junit/com/jogamp/common/nio/TestBuffersFloatDoubleConversion.java
@@ -33,7 +33,9 @@ import org.junit.Assert;
import org.junit.Test;
-public class TestBuffersFloatDoubleConversion {
+import com.jogamp.junit.util.TestTracer;
+
+public class TestBuffersFloatDoubleConversion extends TestTracer {
public static boolean cmpFloatArray(float[] d1, int d1_offset, float[] d2, int d2_offset, int len) {
if( d1.length - d1_offset < len) {
diff --git a/src/junit/com/jogamp/common/nio/TestPointerBufferEndian.java b/src/junit/com/jogamp/common/nio/TestPointerBufferEndian.java
index 43d6a61..798457d 100644
--- a/src/junit/com/jogamp/common/nio/TestPointerBufferEndian.java
+++ b/src/junit/com/jogamp/common/nio/TestPointerBufferEndian.java
@@ -4,13 +4,14 @@ package com.jogamp.common.nio;
import java.io.IOException;
import com.jogamp.common.os.*;
+import com.jogamp.junit.util.TestTracer;
import org.junit.Assert;
import org.junit.Test;
import static java.lang.System.*;
-public class TestPointerBufferEndian {
+public class TestPointerBufferEndian extends TestTracer {
protected void testImpl (boolean direct) {
final MachineDescription machine = Platform.getMachineDescription();
diff --git a/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java b/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java
index 4a9173e..5f13ec9 100644
--- a/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java
+++ b/src/junit/com/jogamp/common/nio/TestStructAccessorEndian.java
@@ -2,6 +2,7 @@ package com.jogamp.common.nio;
import com.jogamp.common.os.*;
import com.jogamp.gluegen.test.junit.generation.Test1p1JavaEmitter;
+import com.jogamp.junit.util.TestTracer;
import java.io.IOException;
import java.nio.*;
@@ -11,7 +12,7 @@ import org.junit.Test;
import static java.lang.System.*;
-public class TestStructAccessorEndian {
+public class TestStructAccessorEndian extends TestTracer {
@Test
public void testStructAccessorEndian1 () {
diff --git a/src/junit/com/jogamp/common/util/TestArrayHashSet01.java b/src/junit/com/jogamp/common/util/TestArrayHashSet01.java
index b16cc74..a41b86c 100644
--- a/src/junit/com/jogamp/common/util/TestArrayHashSet01.java
+++ b/src/junit/com/jogamp/common/util/TestArrayHashSet01.java
@@ -34,7 +34,9 @@ import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
-public class TestArrayHashSet01 {
+import com.jogamp.junit.util.TestTracer;
+
+public class TestArrayHashSet01 extends TestTracer {
public static class Dummy {
int i1, i2, i3;
diff --git a/src/junit/com/jogamp/common/util/TestIOUtil01.java b/src/junit/com/jogamp/common/util/TestIOUtil01.java
index fd95652..3875acd 100644
--- a/src/junit/com/jogamp/common/util/TestIOUtil01.java
+++ b/src/junit/com/jogamp/common/util/TestIOUtil01.java
@@ -46,8 +46,9 @@ import org.junit.Test;
import com.jogamp.common.os.MachineDescription;
import com.jogamp.common.os.Platform;
+import com.jogamp.junit.util.TestTracer;
-public class TestIOUtil01 {
+public class TestIOUtil01 extends TestTracer {
static final MachineDescription machine = Platform.getMachineDescription();
static final int tsz = machine.pageSizeInBytes() + machine.pageSizeInBytes() / 2 ;
diff --git a/src/junit/com/jogamp/common/util/TestIteratorIndexCORE.java b/src/junit/com/jogamp/common/util/TestIteratorIndexCORE.java
index 20eee3f..eb3e2ee 100644
--- a/src/junit/com/jogamp/common/util/TestIteratorIndexCORE.java
+++ b/src/junit/com/jogamp/common/util/TestIteratorIndexCORE.java
@@ -38,8 +38,9 @@ import org.junit.AfterClass;
import org.junit.Test;
import com.jogamp.common.os.Platform;
+import com.jogamp.junit.util.TestTracer;
-public class TestIteratorIndexCORE {
+public class TestIteratorIndexCORE extends TestTracer {
static int elems = 10;
static int loop = ( Platform.getCPUFamily() == Platform.CPUFamily.ARM ) ? 20 : 9999999;
diff --git a/src/junit/com/jogamp/common/util/TestJarUtil.java b/src/junit/com/jogamp/common/util/TestJarUtil.java
index 9eef97d..11540d9 100644
--- a/src/junit/com/jogamp/common/util/TestJarUtil.java
+++ b/src/junit/com/jogamp/common/util/TestJarUtil.java
@@ -46,8 +46,9 @@ import com.jogamp.common.GlueGenVersion;
import com.jogamp.common.util.cache.TempCacheReg;
import com.jogamp.common.util.cache.TempFileCache;
import com.jogamp.common.util.cache.TempJarCache;
+import com.jogamp.junit.util.TestTracer;
-public class TestJarUtil {
+public class TestJarUtil extends TestTracer {
static TempFileCache fileCache;
@BeforeClass
diff --git a/src/junit/com/jogamp/common/util/TestPlatform01.java b/src/junit/com/jogamp/common/util/TestPlatform01.java
index c10bf0b..d26ecf5 100644
--- a/src/junit/com/jogamp/common/util/TestPlatform01.java
+++ b/src/junit/com/jogamp/common/util/TestPlatform01.java
@@ -33,8 +33,9 @@ import org.junit.Test;
import com.jogamp.common.os.MachineDescription;
import com.jogamp.common.os.Platform;
+import com.jogamp.junit.util.TestTracer;
-public class TestPlatform01 {
+public class TestPlatform01 extends TestTracer {
@Test
public void testInfo00() {
diff --git a/src/junit/com/jogamp/common/util/TestRunnableTask01.java b/src/junit/com/jogamp/common/util/TestRunnableTask01.java
index f72a7a7..8fa776f 100644
--- a/src/junit/com/jogamp/common/util/TestRunnableTask01.java
+++ b/src/junit/com/jogamp/common/util/TestRunnableTask01.java
@@ -34,7 +34,9 @@ import java.lang.reflect.InvocationTargetException;
import org.junit.Assert;
import org.junit.Test;
-public class TestRunnableTask01 {
+import com.jogamp.junit.util.TestTracer;
+
+public class TestRunnableTask01 extends TestTracer {
@Test
public void testInvokeAndWait00() throws IOException, InterruptedException, InvocationTargetException {
diff --git a/src/junit/com/jogamp/common/util/TestTempJarCache.java b/src/junit/com/jogamp/common/util/TestTempJarCache.java
index f1630d4..bff66f9 100644
--- a/src/junit/com/jogamp/common/util/TestTempJarCache.java
+++ b/src/junit/com/jogamp/common/util/TestTempJarCache.java
@@ -47,8 +47,9 @@ import com.jogamp.common.os.Platform;
import com.jogamp.common.util.cache.TempCacheReg;
import com.jogamp.common.util.cache.TempFileCache;
import com.jogamp.common.util.cache.TempJarCache;
+import com.jogamp.junit.util.TestTracer;
-public class TestTempJarCache {
+public class TestTempJarCache extends TestTracer {
static TempFileCache fileCache;
static class TestClassLoader extends URLClassLoader {
diff --git a/src/junit/com/jogamp/common/util/TestVersionInfo.java b/src/junit/com/jogamp/common/util/TestVersionInfo.java
index 65e6e63..910b478 100644
--- a/src/junit/com/jogamp/common/util/TestVersionInfo.java
+++ b/src/junit/com/jogamp/common/util/TestVersionInfo.java
@@ -29,11 +29,13 @@
package com.jogamp.common.util;
import com.jogamp.common.GlueGenVersion;
+import com.jogamp.junit.util.TestTracer;
+
import java.io.IOException;
import org.junit.Test;
-public class TestVersionInfo {
+public class TestVersionInfo extends TestTracer {
@Test
public void testInfo01() {
diff --git a/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java b/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java
index 3654428..a224633 100644
--- a/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java
+++ b/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java
@@ -40,8 +40,9 @@ import org.junit.Assert;
import org.junit.Test;
import com.jogamp.common.os.Platform;
+import com.jogamp.junit.util.TestTracer;
-public class TestRecursiveLock01 {
+public class TestRecursiveLock01 extends TestTracer {
public enum YieldMode {
NONE(0), YIELD(1), SLEEP(2);