modified failing GstreamerPlayerTest::pauseResumeTest to actually fail
This commit is contained in:
parent
43204f9cd3
commit
f42e5b094d
1 changed files with 7 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: fgerlits $
|
Author : $Author: fgerlits $
|
||||||
Version : $Revision: 1.8 $
|
Version : $Revision: 1.9 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/src/GstreamerPlayerTest.cxx,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/playlistExecutor/src/GstreamerPlayerTest.cxx,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -657,10 +657,11 @@ GstreamerPlayerTest :: pauseResumeTest(void)
|
||||||
CPPUNIT_FAIL(e.what());
|
CPPUNIT_FAIL(e.what());
|
||||||
}
|
}
|
||||||
CPPUNIT_ASSERT(!player->isPlaying());
|
CPPUNIT_ASSERT(!player->isPlaying());
|
||||||
|
|
||||||
player->start();
|
player->start();
|
||||||
CPPUNIT_ASSERT(player->isPlaying());
|
CPPUNIT_ASSERT(player->isPlaying());
|
||||||
|
|
||||||
sleepT.reset(new time_duration(seconds(3)));
|
sleepT.reset(new time_duration(seconds(2)));
|
||||||
TimeConversion::sleep(sleepT);
|
TimeConversion::sleep(sleepT);
|
||||||
player->pause();
|
player->pause();
|
||||||
CPPUNIT_ASSERT(!player->isPlaying());
|
CPPUNIT_ASSERT(!player->isPlaying());
|
||||||
|
@ -672,6 +673,10 @@ GstreamerPlayerTest :: pauseResumeTest(void)
|
||||||
player->start();
|
player->start();
|
||||||
CPPUNIT_ASSERT(player->isPlaying());
|
CPPUNIT_ASSERT(player->isPlaying());
|
||||||
|
|
||||||
|
sleepT.reset(new time_duration(seconds(1)));
|
||||||
|
TimeConversion::sleep(sleepT);
|
||||||
|
CPPUNIT_ASSERT(player->isPlaying());
|
||||||
|
|
||||||
sleepT.reset(new time_duration(microseconds(10)));
|
sleepT.reset(new time_duration(microseconds(10)));
|
||||||
while (player->isPlaying()) {
|
while (player->isPlaying()) {
|
||||||
TimeConversion::sleep(sleepT);
|
TimeConversion::sleep(sleepT);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue