aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohannes Schickel2010-02-03 15:24:44 +0000
committerJohannes Schickel2010-02-03 15:24:44 +0000
commita5e474177529596f35f6bddef24b6eb43bf5fab4 (patch)
tree2776f25cc22fecdc248a8a782b5fc710f27d5533 /test
parentc0f5a5d2d959c3f1631ec5c500179db2d139f3a8 (diff)
downloadscummvm-rg350-a5e474177529596f35f6bddef24b6eb43bf5fab4.tar.gz
scummvm-rg350-a5e474177529596f35f6bddef24b6eb43bf5fab4.tar.bz2
scummvm-rg350-a5e474177529596f35f6bddef24b6eb43bf5fab4.zip
Less noisy output in case something goes wrong.
svn-id: r47854
Diffstat (limited to 'test')
-rw-r--r--test/sound/raw.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/sound/raw.h b/test/sound/raw.h
index f9e56f2973..6532808e82 100644
--- a/test/sound/raw.h
+++ b/test/sound/raw.h
@@ -65,8 +65,10 @@ public:
int16 *buffer = new int16[sampleRate * time];
TS_ASSERT_EQUALS(s->readBuffer(buffer, sampleRate * time), sampleRate * time);
+ bool fine = true;
for (int i = 0; i < sampleRate * time; ++i)
- TS_ASSERT_EQUALS(buffer[i], sine[i] << 8);
+ fine &= (buffer[i] == (sine[i] << 8));
+ TS_ASSERT_EQUALS(fine, true);
TS_ASSERT_EQUALS(s->endOfData(), true);
@@ -84,8 +86,10 @@ public:
int16 *buffer = new int16[sampleRate * time];
TS_ASSERT_EQUALS(s->readBuffer(buffer, sampleRate * time), sampleRate * time);
+ bool fine = true;
for (int i = 0; i < sampleRate * time; ++i)
- TS_ASSERT_EQUALS(buffer[i], (int16)READ_BE_UINT16(&sine[i]));
+ fine &= (buffer[i] == (int16)READ_BE_UINT16(&sine[i]));
+ TS_ASSERT_EQUALS(fine, true);
TS_ASSERT_EQUALS(s->endOfData(), true);
@@ -103,8 +107,10 @@ public:
int16 *buffer = new int16[sampleRate * time];
TS_ASSERT_EQUALS(s->readBuffer(buffer, sampleRate * time), sampleRate * time);
+ bool fine = true;
for (int i = 0; i < sampleRate * time; ++i)
- TS_ASSERT_EQUALS(buffer[i], (int16)READ_LE_UINT16(&sine[i]));
+ fine &= (buffer[i] == (int16)READ_LE_UINT16(&sine[i]));
+ TS_ASSERT_EQUALS(fine, true);
TS_ASSERT_EQUALS(s->endOfData(), true);