tests: skip tst_qaudiodecoderbackend when no audio decoding support
Task-number: QTBUG-46331 Change-Id: I9168ae7d89869cc0811394fc4091a5e44c136b9b Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
@@ -1,41 +0,0 @@
|
|||||||
# QTBUG-46331
|
|
||||||
|
|
||||||
[fileTest]
|
|
||||||
opensuse-13.1 64bit
|
|
||||||
redhatenterpriselinuxworkstation-6.6
|
|
||||||
osx-10.8
|
|
||||||
osx-10.9
|
|
||||||
osx-10.10
|
|
||||||
osx-10.11
|
|
||||||
windows 32bit developer-build
|
|
||||||
windows 64bit developer-build
|
|
||||||
|
|
||||||
[unsupportedFileTest]
|
|
||||||
opensuse-13.1 64bit
|
|
||||||
redhatenterpriselinuxworkstation-6.6
|
|
||||||
osx-10.8
|
|
||||||
osx-10.9
|
|
||||||
osx-10.10
|
|
||||||
osx-10.11
|
|
||||||
windows 32bit developer-build
|
|
||||||
windows 64bit developer-build
|
|
||||||
|
|
||||||
[corruptedFileTest]
|
|
||||||
opensuse-13.1 64bit
|
|
||||||
redhatenterpriselinuxworkstation-6.6
|
|
||||||
osx-10.8
|
|
||||||
osx-10.9
|
|
||||||
osx-10.10
|
|
||||||
osx-10.11
|
|
||||||
windows 32bit developer-build
|
|
||||||
windows 64bit developer-build
|
|
||||||
|
|
||||||
[deviceTest]
|
|
||||||
opensuse-13.1 64bit
|
|
||||||
redhatenterpriselinuxworkstation-6.6
|
|
||||||
osx-10.8
|
|
||||||
osx-10.9
|
|
||||||
osx-10.10
|
|
||||||
osx-10.11
|
|
||||||
windows 32bit developer-build
|
|
||||||
windows 64bit developer-build
|
|
||||||
@@ -78,6 +78,8 @@ void tst_QAudioDecoderBackend::cleanup()
|
|||||||
void tst_QAudioDecoderBackend::fileTest()
|
void tst_QAudioDecoderBackend::fileTest()
|
||||||
{
|
{
|
||||||
QAudioDecoder d;
|
QAudioDecoder d;
|
||||||
|
if (d.error() == QAudioDecoder::ServiceMissingError)
|
||||||
|
QSKIP("There is no audio decoding support on this platform.");
|
||||||
QAudioBuffer buffer;
|
QAudioBuffer buffer;
|
||||||
quint64 duration = 0;
|
quint64 duration = 0;
|
||||||
int byteCount = 0;
|
int byteCount = 0;
|
||||||
@@ -260,6 +262,8 @@ void tst_QAudioDecoderBackend::fileTest()
|
|||||||
void tst_QAudioDecoderBackend::unsupportedFileTest()
|
void tst_QAudioDecoderBackend::unsupportedFileTest()
|
||||||
{
|
{
|
||||||
QAudioDecoder d;
|
QAudioDecoder d;
|
||||||
|
if (d.error() == QAudioDecoder::ServiceMissingError)
|
||||||
|
QSKIP("There is no audio decoding support on this platform.");
|
||||||
QAudioBuffer buffer;
|
QAudioBuffer buffer;
|
||||||
|
|
||||||
QVERIFY(d.state() == QAudioDecoder::StoppedState);
|
QVERIFY(d.state() == QAudioDecoder::StoppedState);
|
||||||
@@ -336,6 +340,8 @@ void tst_QAudioDecoderBackend::unsupportedFileTest()
|
|||||||
void tst_QAudioDecoderBackend::corruptedFileTest()
|
void tst_QAudioDecoderBackend::corruptedFileTest()
|
||||||
{
|
{
|
||||||
QAudioDecoder d;
|
QAudioDecoder d;
|
||||||
|
if (d.error() == QAudioDecoder::ServiceMissingError)
|
||||||
|
QSKIP("There is no audio decoding support on this platform.");
|
||||||
QAudioBuffer buffer;
|
QAudioBuffer buffer;
|
||||||
|
|
||||||
QVERIFY(d.state() == QAudioDecoder::StoppedState);
|
QVERIFY(d.state() == QAudioDecoder::StoppedState);
|
||||||
@@ -408,6 +414,8 @@ void tst_QAudioDecoderBackend::corruptedFileTest()
|
|||||||
void tst_QAudioDecoderBackend::deviceTest()
|
void tst_QAudioDecoderBackend::deviceTest()
|
||||||
{
|
{
|
||||||
QAudioDecoder d;
|
QAudioDecoder d;
|
||||||
|
if (d.error() == QAudioDecoder::ServiceMissingError)
|
||||||
|
QSKIP("There is no audio decoding support on this platform.");
|
||||||
QAudioBuffer buffer;
|
QAudioBuffer buffer;
|
||||||
quint64 duration = 0;
|
quint64 duration = 0;
|
||||||
int sampleCount = 0;
|
int sampleCount = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user