small fixes to make all unit tests in modules/core except PlaylistTest compile and pass
This commit is contained in:
parent
0bd2f98717
commit
fe4ea304c0
|
@ -61,9 +61,8 @@ USR_BIN_DIR = ${USR_DIR}/bin
|
|||
USR_LIB_DIR = ${USR_DIR}/lib
|
||||
|
||||
GENRB = @GENRB@
|
||||
GENRBOPTS = --destdir ${TMP_DIR} \
|
||||
GENRBOPTS = --destdir ${TMP_DIR}/${PACKAGE_NAME} \
|
||||
--encoding utf-8 \
|
||||
--package-name ${PACKAGE_NAME} \
|
||||
--strict
|
||||
|
||||
VPATH = ${SRC_DIR}
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
Location : $URL$
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
#ifndef PlaylistElement_h
|
||||
#define PlaylistElement_h
|
||||
#ifndef LiveSupport_Core_PlaylistElement_h
|
||||
#define LiveSupport_Core_PlaylistElement_h
|
||||
|
||||
#ifndef __cplusplus
|
||||
#error This is a C++ include file
|
||||
|
|
|
@ -150,7 +150,10 @@ PlaylistElementTest :: firstTest(void)
|
|||
|
||||
CPPUNIT_ASSERT(*playlistElement->getXmlElementString() ==
|
||||
"<playlistElement id=\"0000000000000111\" "
|
||||
"relativeOffset=\"00:00:00.000000\">\n"
|
||||
"relativeOffset=\"00:00:00.000000\" "
|
||||
"clipStart=\"00:00:00.000000\" "
|
||||
"clipEnd=\"00:00:00.000000\" "
|
||||
"clipLength=\"00:00:00.000000\">\n"
|
||||
"<audioClip id=\"0000000000010003\" "
|
||||
"title=\"three\" "
|
||||
"playlength=\"00:00:11.000000\"/>\n"
|
||||
|
|
|
@ -144,7 +144,7 @@ RdsContainerTest :: toStringTest(void)
|
|||
{
|
||||
Ptr<const Glib::ustring>::Ref string = rdsContainer->toString();
|
||||
CPPUNIT_ASSERT(string);
|
||||
CPPUNIT_ASSERT(*string == "PS=BBC Four\n"
|
||||
"RT=C. Monster - Monsterpiece Theater\n");
|
||||
CPPUNIT_ASSERT(*string == "PS=BBC Four\r\n"
|
||||
"RT=C. Monster - Monsterpiece Theater\r\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ ThreadTest :: simpleTest(void)
|
|||
CPPUNIT_ASSERT(runnable->getState() == TestRunnable::created);
|
||||
thread->start();
|
||||
Thread::yield();
|
||||
TimeConversion::sleep(sleepTime);
|
||||
CPPUNIT_ASSERT(runnable->getState() == TestRunnable::running);
|
||||
TimeConversion::sleep(sleepTime);
|
||||
CPPUNIT_ASSERT(runnable->getState() == TestRunnable::running);
|
||||
|
|
Loading…
Reference in New Issue