From 7d0754c2a6dae5a8d6fc5c32294e06f9cde4ffe6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 10 Dec 2006 07:20:13 +0000 Subject: [PATCH] update --- stepmania/src/tests/test_audio_readers.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/tests/test_audio_readers.cpp b/stepmania/src/tests/test_audio_readers.cpp index f229e04b13..a921c7580a 100644 --- a/stepmania/src/tests/test_audio_readers.cpp +++ b/stepmania/src/tests/test_audio_readers.cpp @@ -161,7 +161,7 @@ bool must_be_eof( RageSoundReader *snd ) { char buf[16]; int got = snd->Read( buf, 1 ); - return got == 0; + return got == RageSoundReader::END_OF_FILE; } const int FILTER_NONE = 0; @@ -390,8 +390,9 @@ bool RunTests( RageSoundReader *snd, const TestFile &tf ) { char buf[4096]; int got = snd->Read( buf, sizeof(buf) / (snd->GetNumChannels() * sizeof(int16_t)) ); - if( got == 0 ) + if( got == RageSoundReader::END_OF_FILE ) break; + ASSERT( got >= 0 ); } /* Now, make sure reading after an EOF returns another EOF. */