From a5e474177529596f35f6bddef24b6eb43bf5fab4 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 3 Feb 2010 15:24:44 +0000 Subject: Less noisy output in case something goes wrong. svn-id: r47854 --- test/sound/raw.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test/sound/raw.h') 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); -- cgit v1.2.3