From c923fea8221a60656066e4198206ead62521b4b9 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 17 Dec 2010 23:46:27 +0100 Subject: [PATCH] Accept 13766 as a valid sound duration too (some liblame versions give that number to swfc...) --- testsuite/misc-swfc.all/sound.sc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/testsuite/misc-swfc.all/sound.sc b/testsuite/misc-swfc.all/sound.sc index f8c646051..848ca066c 100644 --- a/testsuite/misc-swfc.all/sound.sc +++ b/testsuite/misc-swfc.all/sound.sc @@ -20,9 +20,17 @@ trace("Sound duration is: "); trace(snd.duration); - trace("Correct value should be 13740"); + trace("Correct value should be 13740 or 13766 " + + "(depending on liblame version)"); // fails when no media handler is compiled-in - check_equals(snd.duration, 13740); + // TODO: handle that case + if ( snd.duration != 13740 && snd.duration != 13766 ) + { + Dejagnu.fail("snd.duration="+snd.duration + + ", expected 13740 or 13766 " + _INFO_); + } else { + Dejagnu.pass("snd.duration="+snd.duration + _INFO_); + } trace("Now I'll get the position before starting it"); sndpos=snd.position; -- 2.11.4.GIT