[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kdelibs-phonon/phonon/tests
From: Matthias Kretz <kretz () kde ! org>
Date: 2006-02-15 18:43:34
Message-ID: 1140029014.605264.23990.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 509867 by mkretz:
fail when PHONON_TESTURL isn't pointing to a valid URL
M +2 -0 mediaobjecttest.cpp
M +2 -0 statetest.cpp
--- branches/work/kdelibs-phonon/phonon/tests/mediaobjecttest.cpp #509866:509867
@@ -30,6 +30,8 @@
qRegisterMetaType<Phonon::State>( "Phonon::State" );
m_url = getenv( "PHONON_TESTURL" );
+ if( !m_url.isValid() )
+ QFAIL( "You need to set PHONON_TESTURL to a valid URL" );
m_media = new MediaObject( this );
m_spy = new QSignalSpy( m_media, SIGNAL( stateChanged( Phonon::State, Phonon::State ) ) );
QVERIFY( m_spy->isValid() );
--- branches/work/kdelibs-phonon/phonon/tests/statetest.cpp #509866:509867
@@ -29,6 +29,8 @@
void StateTester::initTestCase()
{
m_url = new KUrl( getenv( "PHONON_TESTURL" ) );
+ if( !m_url->isValid() )
+ QFAIL( "You need to set PHONON_TESTURL to a valid URL" );
}
void StateTester::run()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic