aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2013-01-30 16:52:52 +0100
committerXerxes Rånby <[email protected]>2013-01-30 16:52:52 +0100
commit42fad3438ff3b7acb81941eef0e3705bb84daac3 (patch)
tree715dd555fc03927b0d3f2a5d69086413a7699226 /src/test/com/jogamp
parent89d54d1b311bd78be53bef26e89cc4e871351caf (diff)
Fix exception logic and dest buffer in ALExtLoopbackDeviceSOFTTest
Do not expect exceptions to happen under normal execution and fill the destination buffer instead of the source buffer. Signed-off-by Xerxes Rånby <[email protected]>
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r--src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java b/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
index 7718cff..cc6c851 100644
--- a/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
+++ b/src/test/com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java
@@ -79,7 +79,7 @@ public class ALExtLoopbackDeviceSOFTTest {
} catch (Exception e) {
ex = e;
}
- assertNotNull(ex);
+ assertNull(ex);
ex = null;
// queue the data
@@ -90,11 +90,11 @@ public class ALExtLoopbackDeviceSOFTTest {
// render it to an output buffer
try {
- alext.alcRenderSamplesSOFT(dev, wd.data, wd.size);
+ alext.alcRenderSamplesSOFT(dev, bb, wd.size);
} catch (Exception e) {
ex = e;
}
- assertNotNull(ex);
+ assertNull(ex);
// should the samples be bit identical?
for (int i=0;i<wd.size;i++) {