From 42fad3438ff3b7acb81941eef0e3705bb84daac3 Mon Sep 17 00:00:00 2001 From: Xerxes Rånby Date: Wed, 30 Jan 2013 16:52:52 +0100 Subject: Fix exception logic and dest buffer in ALExtLoopbackDeviceSOFTTest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../com/jogamp/openal/test/junit/ALExtLoopbackDeviceSOFTTest.java | 6 +++--- 1 file 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