buildbot success in ASF Buildbot on openoffice-linux64-nightly
The Buildbot has detected a passing build on builder openoffice-linux64-nightly while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/openoffice-linux64-nightly/builds/70 Buildbot URL: http://ci.apache.org/ Buildslave for this Build: tethys_ubuntu Build Reason: The Nightly scheduler named 'openoffice-linux64-nightly' triggered this build Build Source Stamp: [branch openoffice/trunk] HEAD Blamelist: Build succeeded! Sincerely, -The Buildbot
buildbot success in ASF Buildbot on openoffice-linux64-rat
The Buildbot has detected a passing build on builder openoffice-linux64-rat while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/openoffice-linux64-rat/builds/60 Buildbot URL: http://ci.apache.org/ Buildslave for this Build: tethys_ubuntu Build Reason: The Nightly scheduler named 'openoffice-linux64-rat' triggered this build Build Source Stamp: [branch openoffice/trunk] HEAD Blamelist: Build succeeded! Sincerely, -The Buildbot
svn commit: r1701357 [1/5] - /openoffice/trunk/main/sal/qa/osl/socket/
Author: damjan Date: Sat Sep 5 07:59:22 2015 New Revision: 1701357 URL: http://svn.apache.org/r1701357 Log: #i125003# migrate main/sal/qa/osl/socket from cppunit to Google Test, get tests to compile and not to SIGSEGV or die from EPIPE, and get as many tests to pass as possible. Modified: openoffice/trunk/main/sal/qa/osl/socket/makefile.mk openoffice/trunk/main/sal/qa/osl/socket/osl_AcceptorSocket.cxx openoffice/trunk/main/sal/qa/osl/socket/osl_ConnectorSocket.cxx openoffice/trunk/main/sal/qa/osl/socket/osl_DatagramSocket.cxx openoffice/trunk/main/sal/qa/osl/socket/osl_Socket.cxx openoffice/trunk/main/sal/qa/osl/socket/osl_Socket2.cxx openoffice/trunk/main/sal/qa/osl/socket/osl_SocketAddr.cxx openoffice/trunk/main/sal/qa/osl/socket/osl_Socket_Const.h openoffice/trunk/main/sal/qa/osl/socket/osl_Socket_Const_orig.h openoffice/trunk/main/sal/qa/osl/socket/osl_Socket_tests.cxx openoffice/trunk/main/sal/qa/osl/socket/osl_StreamSocket.cxx openoffice/trunk/main/sal/qa/osl/socket/sockethelper.cxx openoffice/trunk/main/sal/qa/osl/socket/sockethelper.hxx Modified: openoffice/trunk/main/sal/qa/osl/socket/makefile.mk URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/socket/makefile.mk?rev=1701357=1701356=1701357=diff == --- openoffice/trunk/main/sal/qa/osl/socket/makefile.mk (original) +++ openoffice/trunk/main/sal/qa/osl/socket/makefile.mk Sat Sep 5 07:59:22 2015 @@ -32,180 +32,174 @@ ENABLE_EXCEPTIONS=TRUE .INCLUDE : settings.mk +.IF "$(ENABLE_UNIT_TESTS)" != "YES" +all: + @echo unit tests are disabled. Nothing to do. + +.ELSE + CFLAGS+= $(LFS_CFLAGS) CXXFLAGS+= $(LFS_CFLAGS) # BEGIN # auto generated Target:Socket by codegen.pl -SHL1OBJS= \ +APP1OBJS= \ $(SLO)$/osl_Socket.obj -SHL1TARGET=osl_SocketOld -SHL1STDLIBS= $(SALLIB) $CPPUNITLIB) $(TESTSHL2LIB) +APP1TARGET=osl_SocketOld +APP1STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB) .IF "$(GUI)" == "WNT" -SHL1STDLIBS+= $(WS2_32LIB) +APP1STDLIBS+= $(WS2_32LIB) .ENDIF -.IF "$(GUI)" == "UNX" -SHL1STDLIBS+= -ldl -lnsl +.IF ""$(OS)"=="SOLARIS" +APP1STDLIBS+= -ldl -lnsl .ENDIF -SHL1IMPLIB= i$(SHL1TARGET) -# SHL1DEF=$(MISC)$/$(SHL1TARGET).def -DEF1NAME=$(SHL1TARGET) -# DEF1EXPORTFILE= export.exp -SHL1VERSIONMAP = $(PRJ)$/qa$/export.map +APP1RPATH = NONE +APP1TEST = enabled # auto generated Target:Socket # END -- # --- BEGIN -SHL2OBJS= \ +APP2OBJS= \ $(SLO)$/osl_Socket_tests.obj -SHL2TARGET= osl_Socket_tests -SHL2STDLIBS= $(SALLIB) $CPPUNITLIB) $(TESTSHL2LIB) - -SHL2IMPLIB= i$(SHL2TARGET) -DEF2NAME=$(SHL2TARGET) -SHL2VERSIONMAP = $(PRJ)$/qa$/export.map - +APP2TARGET= osl_Socket_tests +APP2STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB) +APP2RPATH = NONE +APP2TEST = enabled # END -- # BEGIN # auto generated Target:Socket by codegen.pl -SHL3OBJS= \ +APP3OBJS= \ $(SLO)$/sockethelper.obj \ $(SLO)$/osl_StreamSocket.obj -SHL3TARGET= osl_StreamSocket -SHL3STDLIBS= $(SALLIB) $CPPUNITLIB) $(TESTSHL2LIB) +APP3TARGET= osl_StreamSocket +APP3STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB) .IF "$(GUI)" == "WNT" -SHL3STDLIBS += $(WS2_32LIB) +APP3STDLIBS += $(WS2_32LIB) .ENDIF -.IF "$(GUI)" == "UNX" -SHL3STDLIBS += -ldl -lnsl +.IF "$(OS)"=="SOLARIS" +APP3STDLIBS += -ldl -lnsl .ENDIF -SHL3IMPLIB= i$(SHL3TARGET) -DEF3NAME=$(SHL3TARGET) -SHL3VERSIONMAP = $(PRJ)$/qa$/export.map +APP3RPATH = NONE +APP3TEST = enabled # auto generated Target:Socket # END -- # BEGIN # auto generated Target:Socket by codegen.pl -SHL4OBJS= \ +APP4OBJS= \ $(SLO)$/sockethelper.obj \ $(SLO)$/osl_DatagramSocket.obj -SHL4TARGET= osl_DatagramSocket -SHL4STDLIBS= $(SALLIB) $(CPPUNITLIB) $(TESTSHL2LIB) +APP4TARGET= osl_DatagramSocket +APP4STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB) .IF "$(GUI)" == "WNT" -SHL4STDLIBS += $(WS2_32LIB) +APP4STDLIBS += $(WS2_32LIB) .ENDIF -.IF "$(GUI)" == "UNX" -SHL4STDLIBS += -ldl -lnsl +.IF "$(OS)"=="SOLARIS" +APP4STDLIBS += -ldl -lnsl .ENDIF -SHL4IMPLIB= i$(SHL4TARGET) -DEF4NAME=$(SHL4TARGET) -SHL4VERSIONMAP = $(PRJ)$/qa$/export.map +APP4RPATH = NONE +APP4TEST = enabled # auto generated Target:Socket # END -- # BEGIN # auto generated Target:Socket by codegen.pl -SHL5OBJS= \ +APP5OBJS= \ $(SLO)$/sockethelper.obj \
svn commit: r1701357 [2/5] - /openoffice/trunk/main/sal/qa/osl/socket/
Modified: openoffice/trunk/main/sal/qa/osl/socket/osl_Socket.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/socket/osl_Socket.cxx?rev=1701357=1701356=1701357=diff == --- openoffice/trunk/main/sal/qa/osl/socket/osl_Socket.cxx (original) +++ openoffice/trunk/main/sal/qa/osl/socket/osl_Socket.cxx Sat Sep 5 07:59:22 2015 @@ -59,7 +59,8 @@ #include #endif -#include +#include +#include "gtest/gtest.h" using namespace osl; using namespace rtl; @@ -105,8 +106,8 @@ inline char * oustring2char( const ::rtl */ inline void printUString( const ::rtl::OUString & str, const sal_Char * msg = "" ) { - t_print("#%s #printUString_u# ", msg ); - t_print("%s\n", oustring2char( str ) ); + printf("#%s #printUString_u# ", msg ); + printf("%s\n", oustring2char( str ) ); } /** get the local host name. @@ -118,7 +119,7 @@ inline ::rtl::OUString getHost( void ) struct hostent *hptr; hptr = gethostbyname( "localhost" ); - CPPUNIT_ASSERT_MESSAGE( "#In getHostname function, error on gethostbyname()", hptr != NULL ); + EXPECT_TRUE(hptr != NULL) << "#In getHostname function, error on gethostbyname()"; ::rtl::OUString aUString = ::rtl::OUString::createFromAscii( (const sal_Char *) hptr->h_name ); return aUString; @@ -132,11 +133,11 @@ inline ::rtl::OUString getThisHostname( #ifdef WNT struct hostent *hptr; hptr = gethostbyname( "localhost" ); - CPPUNIT_ASSERT_MESSAGE( "#In getHostname function, error on gethostbyname()", hptr != NULL ); + EXPECT_TRUE(hptr != NULL) << "#In getHostname function, error on gethostbyname()"; aUString = ::rtl::OUString::createFromAscii( (const sal_Char *) hptr->h_name ); #else char hostname[255]; - CPPUNIT_ASSERT_MESSAGE( "#Error: gethostname failed.", gethostname(hostname, 255) == 0 ); + EXPECT_TRUE(gethostname(hostname, 255) == 0) << "#Error: gethostname failed."; struct hostent *hptr; //first search /ets/hosts, then search from dns @@ -146,7 +147,7 @@ inline ::rtl::OUString getThisHostname( strcpy( hostname, hptr->h_name ); } - t_print("hostname is %s \n", hostname ); + printf("hostname is %s \n", hostname ); aUString = ::rtl::OUString::createFromAscii( (const sal_Char *) hostname ); #endif return aUString; @@ -167,7 +168,7 @@ inline ::rtl::OUString getIPbyName( rtl: //if there are more than one IPs on the same machine, we select one for (; *addrptr; addrptr++) { - t_print("#Local IP Address: %s\n", inet_ntoa(**addrptr)); + printf("#Local IP Address: %s\n", inet_ntoa(**addrptr)); aUString = ::rtl::OUString::createFromAscii( (sal_Char *) (inet_ntoa(**addrptr)) ); } } @@ -205,7 +206,7 @@ inline ::rtl::OUString outputError( cons void thread_sleep( sal_Int32 _nSec ) { /// print statement in thread process must use fflush() to force display. - t_print("# wait %d seconds. ", _nSec ); + printf("# wait %d seconds. ", _nSec ); fflush(stdout); #ifdef WNT //Windows @@ -214,29 +215,29 @@ void thread_sleep( sal_Int32 _nSec ) #if ( defined UNX ) || ( defined OS2 ) //Unix usleep(_nSec * 10); #endif - t_print("# done\n" ); + printf("# done\n" ); } /** print Boolean value. */ inline void printBool( sal_Bool bOk ) { - t_print("#printBool# " ); - ( sal_True == bOk ) ? t_print("YES!\n" ): t_print("NO!\n" ); + printf("#printBool# " ); + ( sal_True == bOk ) ? printf("YES!\n" ): printf("NO!\n" ); } /** print content of a ByteSequence. */ inline void printByteSequence_IP( const ::rtl::ByteSequence & bsByteSeq, sal_Int32 nLen ) { - t_print("#ByteSequence is: " ); + printf("#ByteSequence is: " ); for ( int i = 0; i < nLen; i++ ){ if ( bsByteSeq[i] < 0 ) - t_print("%d ", 256 + bsByteSeq[i] ); + printf("%d ", 256 + bsByteSeq[i] ); else - t_print("%d ", bsByteSeq[i] ); + printf("%d ", bsByteSeq[i] ); } - t_print(" .\n" ); + printf(" .\n" ); } /** convert an IP which is stored as a UString format to a ByteSequence array for later use. @@ -270,28 +271,28 @@ inline ::rtl::ByteSequence UStringIPToBy */ inline void printSocketResult( oslSocketResult eResult ) { - t_print("#printSocketResult# " ); + printf("#printSocketResult# " ); if (!eResult) switch (eResult) { case osl_Socket_Ok: - t_print("client connected\n"); + printf("client connected\n"); break;
svn commit: r1701357 [5/5] - /openoffice/trunk/main/sal/qa/osl/socket/
Modified: openoffice/trunk/main/sal/qa/osl/socket/osl_StreamSocket.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/socket/osl_StreamSocket.cxx?rev=1701357=1701356=1701357=diff == --- openoffice/trunk/main/sal/qa/osl/socket/osl_StreamSocket.cxx (original) +++ openoffice/trunk/main/sal/qa/osl/socket/osl_StreamSocket.cxx Sat Sep 5 07:59:22 2015 @@ -54,11 +54,12 @@ // include files // -#include //#include "osl_Socket_Const.h" #include "sockethelper.hxx" #include +#include +#include "gtest/gtest.h" using namespace osl; using namespace rtl; @@ -89,13 +90,13 @@ protected: sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr ); if ( sal_True != bOK1 ) { -t_print("# AcceptorSocket bind address failed.\n" ) ; +printf("# AcceptorSocket bind address failed.\n" ) ; return; } sal_Bool bOK2 = asAcceptorSocket.listen( 1 ); if ( sal_True != bOK2 ) { -t_print("# AcceptorSocket listen address failed.\n" ) ; +printf("# AcceptorSocket listen address failed.\n" ) ; return; } @@ -105,7 +106,7 @@ protected: if (eResult != osl_Socket_Ok ) { bOK = sal_True; -t_print("AcceptorThread: acceptConnection failed! \n"); +printf("AcceptorThread: acceptConnection failed! \n"); } } public: @@ -122,7 +123,7 @@ public: if ( isRunning( ) ) { asAcceptorSocket.shutdown(); -t_print("# error: Acceptor thread not terminated.\n" ); +printf("# error: Acceptor thread not terminated.\n" ); } } }; @@ -148,13 +149,13 @@ protected: sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr ); if ( sal_True != bOK1 ) { -t_print("# ServerSocketThread: AcceptorSocket bind address failed.\n" ) ; +printf("# ServerSocketThread: AcceptorSocket bind address failed.\n" ) ; break; } sal_Bool bOK2 = asAcceptorSocket.listen( 1 ); if ( sal_True != bOK2 ) { -t_print("# ServerSocketThread: AcceptorSocket listen address failed.\n" ) ; +printf("# ServerSocketThread: AcceptorSocket listen address failed.\n" ) ; break; } @@ -164,13 +165,13 @@ protected: oslSocketResult eResult = asAcceptorSocket.acceptConnection( ssStreamConnection ); if (eResult != osl_Socket_Ok ) { -t_print("ServerSocketThread: acceptConnection failed! \n"); +printf("ServerSocketThread: acceptConnection failed! \n"); break; } sal_Int32 nReadNumber1 = ssStreamConnection.recv( pReadBuffer, 11 ); sal_Int32 nReadNumber2 = ssStreamConnection.recv( pReadBuffer + nReadNumber1, 11 ); pReadBuffer[nReadNumber1 + nReadNumber2] = '\0'; -//t_print("# read buffer content: %s\n", pReadBuffer ); +//printf("# read buffer content: %s\n", pReadBuffer ); break; } ssStreamConnection.close(); @@ -180,7 +181,7 @@ protected: void SAL_CALL onTerminated( ) { -//t_print("# normally terminate this server thread %d!\n", m_id ); +//printf("# normally terminate this server thread %d!\n", m_id ); } public: @@ -189,15 +190,15 @@ public: ServerSocketThread( osl::Condition &_aCond ):m_aCondition(_aCond) { m_aCondition.reset(); -t_print("#init ServerSocketThread\n"); +printf("#init ServerSocketThread\n"); m_id = getIdentifier( ); -//t_print("# successfully creat this ServerSocketThread %d!\n", m_id ); +//printf("# successfully creat this ServerSocketThread %d!\n", m_id ); } ~ServerSocketThread( ) { if ( isRunning( ) ) -t_print("# error: ServerSocketThread has not terminated.\n" ); +printf("# error: ServerSocketThread has not terminated.\n" ); } }; @@ -233,7 +234,7 @@ protected: m_csConnectorSocket.send( pTestString2, 10); } else -t_print("# ClientSocketThread: connect failed! \n"); +printf("# ClientSocketThread: connect failed! \n"); // terminate(); //} m_csConnectorSocket.close(); @@ -242,7 +243,7 @@
svn commit: r1701357 [4/5] - /openoffice/trunk/main/sal/qa/osl/socket/
Modified: openoffice/trunk/main/sal/qa/osl/socket/osl_SocketAddr.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/socket/osl_SocketAddr.cxx?rev=1701357=1701356=1701357=diff == --- openoffice/trunk/main/sal/qa/osl/socket/osl_SocketAddr.cxx (original) +++ openoffice/trunk/main/sal/qa/osl/socket/osl_SocketAddr.cxx Sat Sep 5 07:59:22 2015 @@ -54,7 +54,7 @@ // include files // -#include +#include "gtest/gtest.h" //#include "osl_Socket_Const.h" #include "sockethelper.hxx" @@ -87,316 +87,268 @@ namespace osl_SocketAddr inline SocketAddr( const ::rtl::OUString& strAddrOrHostName, sal_Int32 nPort ); */ - class ctors : public CppUnit::TestFixture + class ctors : public ::testing::Test { public: + }; // class ctors - void ctors_none() - { - /// SocketAddr constructor. - ::osl::SocketAddr saSocketAddr; +TEST_F(ctors, ctors_none) +{ +/// SocketAddr constructor. +::osl::SocketAddr saSocketAddr; -// oslSocketResult aResult; -// rtl::OUString suHost = saSocketAddr.getLocalHostname( ); +// oslSocketResult aResult; +// rtl::OUString suHost = saSocketAddr.getLocalHostname( ); -// rtl::OUString suHost2 = getThisHostname(); +// rtl::OUString suHost2 = getThisHostname(); - CPPUNIT_ASSERT_MESSAGE("test for none parameter constructor function: check if the socket address was created successfully", - sal_True == saSocketAddr.is( ) ); - } +ASSERT_TRUE(sal_True == saSocketAddr.is( )) << "test for none parameter constructor function: check if the socket address was created successfully"; +} - void ctors_none_000() - { - /// SocketAddr constructor. - ::osl::SocketAddr saSocketAddr; +TEST_F(ctors, ctors_none_000) +{ +/// SocketAddr constructor. +::osl::SocketAddr saSocketAddr; -oslSocketResult aResult; -rtl::OUString suHost = saSocketAddr.getLocalHostname( ); -rtl::OUString suHost2 = getThisHostname(); - -sal_Bool bOk = compareUString(suHost, suHost2); - -rtl::OUString suError = rtl::OUString::createFromAscii("Host names should be the same. From SocketAddr.getLocalHostname() it is'"); -suError += suHost; -suError += rtl::OUString::createFromAscii("', from getThisHostname() it is '"); -suError += suHost2; -suError += rtl::OUString::createFromAscii("'."); +oslSocketResult aResult; +rtl::OUString suHost = saSocketAddr.getLocalHostname( ); +rtl::OUString suHost2 = getThisHostname(); - CPPUNIT_ASSERT_MESSAGE(suError, sal_True == bOk); - } +sal_Bool bOk = compareUString(suHost, suHost2); - void ctors_copy() - { - /// SocketAddr copy constructor. - ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); - ::osl::SocketAddr saCopySocketAddr( saSocketAddr ); +rtl::OUString suError = rtl::OUString::createFromAscii("Host names should be the same. From SocketAddr.getLocalHostname() it is'"); +suError += suHost; +suError += rtl::OUString::createFromAscii("', from getThisHostname() it is '"); +suError += suHost2; +suError += rtl::OUString::createFromAscii("'."); - sal_Int32 nPort = saCopySocketAddr.getPort( ); +ASSERT_TRUE(sal_True == bOk) << suError.pData; +} - CPPUNIT_ASSERT_MESSAGE("test for SocketAddr copy constructor function: copy constructor, do an action of copy construction then check the port with original set.", - ( sal_True == saCopySocketAddr.is( ) ) && ( nPort == IP_PORT_HTTP1 ) ); - } +TEST_F(ctors, ctors_copy) +{ +/// SocketAddr copy constructor. +::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); +::osl::SocketAddr saCopySocketAddr( saSocketAddr ); - void ctors_copy_no_001() - { -#if 0 - ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); - oslSocketAddr psaOSLSocketAddr = saSocketAddr.getHandle( ); - - ::osl::SocketAddr saSocketAddrCopy( psaOSLSocketAddr, SAL_NO_COPY ); -
svn commit: r1701357 [3/5] - /openoffice/trunk/main/sal/qa/osl/socket/
Modified: openoffice/trunk/main/sal/qa/osl/socket/osl_Socket2.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/socket/osl_Socket2.cxx?rev=1701357=1701356=1701357=diff == --- openoffice/trunk/main/sal/qa/osl/socket/osl_Socket2.cxx (original) +++ openoffice/trunk/main/sal/qa/osl/socket/osl_Socket2.cxx Sat Sep 5 07:59:22 2015 @@ -54,7 +54,7 @@ // include files // -#include +#include "gtest/gtest.h" //#include "osl_Socket_Const.h" #include "sockethelper.hxx" @@ -96,13 +96,13 @@ protected: sal_Bool bOK1 = asAcceptorSocket.bind( saLocalSocketAddr ); if ( sal_True != bOK1 ) { - t_print("# AcceptorSocket bind address failed.\n" ) ; + printf("# AcceptorSocket bind address failed.\n" ) ; return; } sal_Bool bOK2 = asAcceptorSocket.listen( 1 ); if ( sal_True != bOK2 ) { - t_print("# AcceptorSocket listen address failed.\n" ) ; + printf("# AcceptorSocket listen address failed.\n" ) ; return; } @@ -112,7 +112,7 @@ protected: if (eResult != osl_Socket_Ok ) { bOK = sal_True; - t_print("AcceptorThread: acceptConnection failed! \n"); + printf("AcceptorThread: acceptConnection failed! \n"); } } public: @@ -129,7 +129,7 @@ public: if ( isRunning( ) ) { asAcceptorSocket.shutdown(); - t_print("# error: Acceptor thread not terminated.\n" ); + printf("# error: Acceptor thread not terminated.\n" ); } } }; @@ -155,95 +155,76 @@ namespace osl_Socket */ - class ctors : public CppUnit::TestFixture + class ctors : public ::testing::Test { public: oslSocket sHandle; // initialization - void setUp( ) + void SetUp( ) { sHandle = osl_createSocket( osl_Socket_FamilyInet, osl_Socket_TypeStream, osl_Socket_ProtocolIp ); } - void tearDown( ) + void TearDown( ) { sHandle = NULL; } + }; // class ctors +TEST_F(ctors, ctors_none) +{ +/// Socket constructor. +// ::osl::Socket sSocket(); + +ASSERT_TRUE(1 == 1) << "test for ctors_none constructor function: check if the socket was created successfully, if no exception occurred"; +} + +TEST_F(ctors, ctors_acquire) +{ +/// Socket constructor. +::osl::Socket sSocket( sHandle ); + +ASSERT_TRUE(osl_Socket_TypeStream == sSocket.getType( )) << "test for ctors_acquire constructor function: check if the socket was created successfully"; +} + +TEST_F(ctors, ctors_no_acquire) +{ +/// Socket constructor. +::osl::Socket sSocket( sHandle, SAL_NO_ACQUIRE ); + +ASSERT_TRUE(osl_Socket_TypeStream == sSocket.getType( )) << " test for ctors_no_acquire constructor function: check if the socket was created successfully"; +} + +TEST_F(ctors, ctors_copy_ctor) +{ +::osl::Socket sSocket( sHandle ); +/// Socket copy constructor. +::osl::Socket copySocket( sSocket ); - void ctors_none() - { - /// Socket constructor. - // ::osl::Socket sSocket(); - - CPPUNIT_ASSERT_MESSAGE( "test for ctors_none constructor function: check if the socket was created successfully, if no exception occurred", - 1 == 1 ); - } - - void ctors_acquire() - { - /// Socket constructor. - ::osl::Socket sSocket( sHandle ); - - CPPUNIT_ASSERT_MESSAGE( "test for ctors_acquire constructor function: check if the socket was created successfully", - osl_Socket_TypeStream == sSocket.getType( ) ); - } - - void ctors_no_acquire() - { - /// Socket constructor. - ::osl::Socket sSocket( sHandle, SAL_NO_ACQUIRE ); - - CPPUNIT_ASSERT_MESSAGE(" test for ctors_no_acquire constructor function: check if the socket was created successfully", - osl_Socket_TypeStream == sSocket.getType(
buildbot success in ASF Buildbot on openoffice-fbsd-nightly
The Buildbot has detected a passing build on builder openoffice-fbsd-nightly while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/openoffice-fbsd-nightly/builds/61 Buildbot URL: http://ci.apache.org/ Buildslave for this Build: bb-fbsd2_64bit Build Reason: The Nightly scheduler named 'openoffice-fbsd-nightly' triggered this build Build Source Stamp: [branch openoffice/trunk] HEAD Blamelist: Build succeeded! Sincerely, -The Buildbot
buildbot success in ASF Buildbot on openoffice-linux64-rat-aoo410
The Buildbot has detected a passing build on builder openoffice-linux64-rat-aoo410 while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/openoffice-linux64-rat-aoo410/builds/56 Buildbot URL: http://ci.apache.org/ Buildslave for this Build: tethys_ubuntu Build Reason: The Nightly scheduler named 'openoffice-linux64-rat-aoo410' triggered this build Build Source Stamp: [branch openoffice/branches/AOO410] HEAD Blamelist: Build succeeded! Sincerely, -The Buildbot
svn commit: r964467 - in /websites/staging/openoffice/trunk/content: ./ mailing-lists.html
Author: buildbot Date: Sat Sep 5 17:47:34 2015 New Revision: 964467 Log: Staging update by buildbot for openoffice Modified: websites/staging/openoffice/trunk/content/ (props changed) websites/staging/openoffice/trunk/content/mailing-lists.html Propchange: websites/staging/openoffice/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Sat Sep 5 17:47:34 2015 @@ -1 +1 @@ -1693982 +1701414 Modified: websites/staging/openoffice/trunk/content/mailing-lists.html == --- websites/staging/openoffice/trunk/content/mailing-lists.html (original) +++ websites/staging/openoffice/trunk/content/mailing-lists.html Sat Sep 5 17:47:34 2015 @@ -251,7 +251,7 @@ traffic list, with an average of 88 post Subscribe: mailto:dev-subscr...@openoffice.apache.org;>dev-subscr...@openoffice.apache.org Post (after subscription): mailto:d...@openoffice.apache.org;>d...@openoffice.apache.org Unsubscribe: mailto:dev-unsubscr...@openoffice.apache.org;>dev-unsubscr...@openoffice.apache.org -Searchable Archives: http://markmail.org/search/list:org.apache.incubator.ooo-dev;>Markmail, http://dir.gmane.org/gmane.comp.apache.openoffice.devel;>Gmane, http://www.mail-archive.com/dev@openoffice.apache.org/;>Mail Archive +Searchable Archives: http://dir.gmane.org/gmane.comp.apache.openoffice.devel;>Gmane, http://www.mail-archive.com/dev@openoffice.apache.org/;>Mail Archive (http://markmail.org/search/list:org.apache.incubator.ooo-dev;>Markmail until July 2015) Apache Archives: http://mail-archives.apache.org/mod_mbox/openoffice-dev/;>current, http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/;>legacy Documentation Mailing List (Public) @@ -260,7 +260,7 @@ traffic list, with an average of 88 post Subscribe: mailto:doc-subscr...@openoffice.apache.org;>doc-subscr...@openoffice.apache.org Post (after subscription): mailto:d...@openoffice.apache.org;>d...@openoffice.apache.org Unsubscribe: mailto:doc-unsubscr...@openoffice.apache.org;>doc-unsubscr...@openoffice.apache.org -Searchable Archives: http://markmail.org/search/list:org.apache.openoffice.doc;>Markmail, http://dir.gmane.org/gmane.comp.apache.openoffice.doc;>Gmane, http://www.mail-archive.com/doc@openoffice.apache.org/;>Mail Archive +Searchable Archives: http://dir.gmane.org/gmane.comp.apache.openoffice.doc;>Gmane, http://www.mail-archive.com/doc@openoffice.apache.org/;>Mail Archive (http://markmail.org/search/list:org.apache.openoffice.doc;>Markmail until July 2015) Apache Archives: http://mail-archives.apache.org/mod_mbox/openoffice-doc/;>current QA Mailing List (Public) @@ -272,7 +272,7 @@ you will receive by e-mail) if you don't Subscribe: mailto:qa-subscr...@openoffice.apache.org;>qa-subscr...@openoffice.apache.org Post (after subscription): mailto:q...@openoffice.apache.org;>q...@openoffice.apache.org Unsubscribe: mailto:qa-unsubscr...@openoffice.apache.org;>qa-unsubscr...@openoffice.apache.org -Searchable Archives: http://markmail.org/search/list:org.apache.incubator.ooo-qa;>Markmail, http://www.mail-archive.com/qa@openoffice.apache.org/;>Mail Archive +Searchable Archives: http://www.mail-archive.com/qa@openoffice.apache.org/;>Mail Archive (http://markmail.org/search/list:org.apache.incubator.ooo-qa;>Markmail until July 2015) Apache Archives: http://mail-archives.apache.org/mod_mbox/openoffice-qa/;>current, http://mail-archives.apache.org/mod_mbox/incubator-ooo-qa/;>legacy Localization Mailing List (Public) @@ -292,7 +292,7 @@ average of 10 posts/day. Subscribe: mailto:commits-subscr...@openoffice.apache.org;>commits-subscr...@openoffice.apache.org Unsubscribe: mailto:commits-unsubscr...@openoffice.apache.org;>commits-unsubscr...@openoffice.apache.org -Searchable Archives: http://markmail.org/search/list:org.apache.incubator.ooo-commits;>Markmail, http://dir.gmane.org/gmane.comp.apache.openoffice.scm;>Gmane, http://www.mail-archive.com/commits@openoffice.apache.org/;>Mail Archive +Searchable Archives: http://dir.gmane.org/gmane.comp.apache.openoffice.scm;>Gmane, http://www.mail-archive.com/commits@openoffice.apache.org/;>Mail Archive (http://markmail.org/search/list:org.apache.incubator.ooo-commits;>Markmail until July 2015) Apache Archives: http://mail-archives.apache.org/mod_mbox/openoffice-commits/;>current, http://mail-archives.apache.org/mod_mbox/incubator-ooo-commits/;>legacy Issues Mailing List @@ -302,7 +302,7 @@ with an average of 20 posts/day and will Subscribe: mailto:issues-subscr...@openoffice.apache.org;>issues-subscr...@openoffice.apache.org Unsubscribe: mailto:issues-unsubscr...@openoffice.apache.org;>issues-unsubscr...@openoffice.apache.org -Searchable Archives: http://markmail.org/search/list:org.apache.incubator.ooo-issues;>Markmail, http://dir.gmane.org/gmane.comp.apache.openoffice.issues;>Gmane,
svn commit: r1701414 - /openoffice/site/trunk/content/mailing-lists.mdtext
Author: pescetti Date: Sat Sep 5 17:47:29 2015 New Revision: 1701414 URL: http://svn.apache.org/r1701414 Log: Mark the five discontinued Markmail archives as such. Modified: openoffice/site/trunk/content/mailing-lists.mdtext Modified: openoffice/site/trunk/content/mailing-lists.mdtext URL: http://svn.apache.org/viewvc/openoffice/site/trunk/content/mailing-lists.mdtext?rev=1701414=1701413=1701414=diff == --- openoffice/site/trunk/content/mailing-lists.mdtext (original) +++ openoffice/site/trunk/content/mailing-lists.mdtext Sat Sep 5 17:47:29 2015 @@ -168,7 +168,7 @@ traffic list, with an average of 88 post - Subscribe: [dev-subscr...@openoffice.apache.org][16] - Post (after subscription): [d...@openoffice.apache.org][17] - Unsubscribe: [dev-unsubscr...@openoffice.apache.org][18] - - Searchable Archives: [Markmail][19], [Gmane][20], [Mail Archive][75] + - Searchable Archives: [Gmane][20], [Mail Archive][75] ([Markmail][19] until July 2015) - Apache Archives: [current][51], [legacy][21] ## Documentation Mailing List (Public) @@ -178,7 +178,7 @@ This list is for discussing and developi - Subscribe: [doc-subscr...@openoffice.apache.org][56] - Post (after subscription): [d...@openoffice.apache.org][57] - Unsubscribe: [doc-unsubscr...@openoffice.apache.org][58] - - Searchable Archives: [Markmail][59], [Gmane][66], [Mail Archive][76] + - Searchable Archives: [Gmane][66], [Mail Archive][76] ([Markmail][59] until July 2015) - Apache Archives: [current][60] ## QA Mailing List (Public) @@ -191,7 +191,7 @@ you will receive by e-mail) if you don't - Subscribe: [qa-subscr...@openoffice.apache.org][22] - Post (after subscription): [q...@openoffice.apache.org][23] - Unsubscribe: [qa-unsubscr...@openoffice.apache.org][24] - - Searchable Archives: [Markmail][25], [Mail Archive][77] + - Searchable Archives: [Mail Archive][77] ([Markmail][25] until July 2015) - Apache Archives: [current][52], [legacy][26] ## Localization Mailing List (Public) @@ -213,7 +213,7 @@ average of 10 posts/day. - Subscribe: [commits-subscr...@openoffice.apache.org][27] - Unsubscribe: [commits-unsubscr...@openoffice.apache.org][28] - - Searchable Archives: [Markmail][29], [Gmane][64], [Mail Archive][79] + - Searchable Archives: [Gmane][64], [Mail Archive][79] ([Markmail][29] until July 2015) - Apache Archives: [current][54], [legacy][30] ## Issues Mailing List @@ -224,7 +224,7 @@ with an average of 20 posts/day and will - Subscribe: [issues-subscr...@openoffice.apache.org][31] - Unsubscribe: [issues-unsubscr...@openoffice.apache.org][32] - - Searchable Archives: [Markmail][33], [Gmane][65], [Mail Archive][80] + - Searchable Archives: [Gmane][65], [Mail Archive][80] ([Markmail][33] until July 2015) - Apache Archives: [current][55], [legacy][34] ## Native Language (non-English) Mailing Lists
svn commit: r1701419 [2/3] - in /openoffice/trunk/main/sal/qa/osl/file: makefile.mk osl_File.cxx osl_File_Const.h osl_old_test_file.cxx test_cpy_wrt_file.cxx
Modified: openoffice/trunk/main/sal/qa/osl/file/osl_File.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/file/osl_File.cxx?rev=1701419=1701418=1701419=diff == --- openoffice/trunk/main/sal/qa/osl/file/osl_File.cxx (original) +++ openoffice/trunk/main/sal/qa/osl/file/osl_File.cxx Sat Sep 5 19:30:51 2015 @@ -37,7 +37,7 @@ #include #include -#include +#include "gtest/gtest.h" // #ifdef WNT // # define UNICODE @@ -110,31 +110,31 @@ rtl::OUString errorToStr( ::osl::FileBas */ inline void printFileType( const ::osl::FileStatus::Type nType ) { - t_print( "#printFileType# " ); + printf( "#printFileType# " ); switch ( nType ) { case ::osl::FileStatus::Directory: - t_print( "This file is a: Directory.\n" ); + printf( "This file is a: Directory.\n" ); break; case ::osl::FileStatus::Volume: - t_print( "This file is a: volume device.\n" ); + printf( "This file is a: volume device.\n" ); break; case ::osl::FileStatus::Regular: - t_print( "This file is a: regular file.\n" ); + printf( "This file is a: regular file.\n" ); break; case ::osl::FileStatus::Fifo: - t_print( "This file is a: fifo.\n" ); + printf( "This file is a: fifo.\n" ); break; case ::osl::FileStatus::Socket: - t_print( "This file is a: socket.\n" ); + printf( "This file is a: socket.\n" ); break; case ::osl::FileStatus::Link: - t_print( "This file is a: link file.\n" ); + printf( "This file is a: link file.\n" ); break; case ::osl::FileStatus::Special: - t_print( "This file is a: special.\n" ); + printf( "This file is a: special.\n" ); break; case ::osl::FileStatus::Unknown: - t_print( "The file type is unknown %d \n", nType ); + printf( "The file type is unknown %d \n", nType ); break; } } @@ -143,32 +143,32 @@ inline void printFileType( const ::osl:: */ inline void printFileAttributes( const sal_Int64 nAttributes ) { - t_print( "#printFileAttributes# This file is a: (" ); + printf( "#printFileAttributes# This file is a: (" ); if ( ( nAttributes | Attribute_ReadOnly ) == nAttributes ) - t_print( " ReadOnly " ); + printf( " ReadOnly " ); if ( ( nAttributes | Attribute_Hidden ) == nAttributes ) - t_print( " Hidden " ); + printf( " Hidden " ); if ( ( nAttributes | Attribute_Executable ) == nAttributes ) - t_print( " Executable " ); + printf( " Executable " ); if ( ( nAttributes | Attribute_GrpWrite ) == nAttributes ) - t_print( " GrpWrite " ); + printf( " GrpWrite " ); if ( ( nAttributes | Attribute_GrpRead ) == nAttributes ) - t_print( " GrpRead " ); + printf( " GrpRead " ); if ( ( nAttributes | Attribute_GrpExe ) == nAttributes ) - t_print( " GrpExe " ); + printf( " GrpExe " ); if ( ( nAttributes | Attribute_OwnWrite ) == nAttributes ) - t_print( " OwnWrite " ); + printf( " OwnWrite " ); if ( ( nAttributes | Attribute_OwnRead ) == nAttributes ) - t_print( " OwnRead " ); + printf( " OwnRead " ); if ( ( nAttributes | Attribute_OwnExe ) == nAttributes ) - t_print( " OwnExe " ); + printf( " OwnExe " ); if ( ( nAttributes | Attribute_OthWrite ) == nAttributes ) - t_print( " OthWrite " ); + printf( " OthWrite " ); if ( ( nAttributes | Attribute_OthRead ) == nAttributes ) - t_print( " OthRead " ); + printf( " OthRead " ); if ( ( nAttributes | Attribute_OthExe ) == nAttributes ) - t_print( " OthExe " ); - t_print( ") file!\n" ); + printf( " OthExe " ); + printf( ") file!\n" ); } /** print a UNI_CODE file name. @@ -177,24 +177,24 @@ inline void printFileName( const ::rtl:: { rtl::OString aString; - t_print( "#printFileName_u# " ); + printf( "#printFileName_u# " ); aString =
svn commit: r1701419 [1/3] - in /openoffice/trunk/main/sal/qa/osl/file: makefile.mk osl_File.cxx osl_File_Const.h osl_old_test_file.cxx test_cpy_wrt_file.cxx
Author: damjan Date: Sat Sep 5 19:30:51 2015 New Revision: 1701419 URL: http://svn.apache.org/r1701419 Log: #i125003# migrate main/sal/qa/osl/file from cppunit to Google Test, get tests to compile, but not all of them pass. Modified: openoffice/trunk/main/sal/qa/osl/file/makefile.mk openoffice/trunk/main/sal/qa/osl/file/osl_File.cxx openoffice/trunk/main/sal/qa/osl/file/osl_File_Const.h openoffice/trunk/main/sal/qa/osl/file/osl_old_test_file.cxx openoffice/trunk/main/sal/qa/osl/file/test_cpy_wrt_file.cxx Modified: openoffice/trunk/main/sal/qa/osl/file/makefile.mk URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/file/makefile.mk?rev=1701419=1701418=1701419=diff == --- openoffice/trunk/main/sal/qa/osl/file/makefile.mk (original) +++ openoffice/trunk/main/sal/qa/osl/file/makefile.mk Sat Sep 5 19:30:51 2015 @@ -32,50 +32,42 @@ ENABLE_EXCEPTIONS=TRUE .INCLUDE : settings.mk +.IF "$(ENABLE_UNIT_TESTS)" != "YES" +all: + @echo unit tests are disabled. Nothing to do. + +.ELSE + CFLAGS+= $(LFS_CFLAGS) CXXFLAGS+= $(LFS_CFLAGS) # --- BEGIN -SHL1OBJS= \ +APP1OBJS= \ $(SLO)$/osl_File.obj -SHL1TARGET= osl_File -SHL1STDLIBS= $(SALLIB) $(CPPUNITLIB) $(TESTSHL2LIB) - -SHL1IMPLIB= i$(SHL1TARGET) - -DEF1NAME=$(SHL1TARGET) -SHL1VERSIONMAP = $(PRJ)$/qa$/export.map - +APP1TARGET= osl_File +APP1STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB) +APP1RPATH = NONE +APP1TEST = enabled #--- -SHL2OBJS=$(SLO)$/test_cpy_wrt_file.obj -SHL2TARGET=tcwf -SHL2STDLIBS= $(SALLIB) $(CPPUNITLIB) $(TESTSHL2LIB) -SHL2IMPLIB=i$(SHL2TARGET) -SHL2DEF=$(MISC)$/$(SHL2TARGET).def -SHL2VERSIONMAP = $(PRJ)$/qa$/export.map -DEF2NAME=$(SHL2TARGET) - - +APP2OBJS=$(SLO)$/test_cpy_wrt_file.obj +APP2TARGET=tcwf +APP2STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB) +APP2RPATH = NONE +APP2TEST = enabled # END -- # --- BEGIN -SHL3OBJS= \ +APP3OBJS= \ $(SLO)$/osl_old_test_file.obj -SHL3TARGET= osl_old_test_file -SHL3STDLIBS= $(SALLIB) $(CPPUNITLIB) $(TESTSHL2LIB) - -SHL3IMPLIB= i$(SHL3TARGET) - -DEF3NAME=$(SHL3TARGET) -SHL3VERSIONMAP = $(PRJ)$/qa$/export.map +APP3TARGET= osl_old_test_file +APP3STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB) +APP3RPATH = NONE +APP3TEST = enabled # END -- -#--- All object files --- -# do this here, so we get right dependencies -SLOFILES=$(SHL1OBJS) - # --- Targets -- .INCLUDE : target.mk -.INCLUDE : _cppunit.mk + +.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"
buildbot failure in ASF Buildbot on aoo-win7
The Buildbot has detected a failed build on builder aoo-win7 while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/aoo-win7/builds/74 Buildbot URL: http://ci.apache.org/ Buildslave for this Build: bb-win7 Build Reason: The Nightly scheduler named 'aoo-win7-nightly' triggered this build Build Source Stamp: [branch openoffice/trunk] HEAD Blamelist: BUILD FAILED: failed svn info configure bootstrap build.pl --all copy log index Sincerely, -The Buildbot
buildbot success in ASF Buildbot on openoffice-linux32-nightly
The Buildbot has detected a passing build on builder openoffice-linux32-nightly while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/openoffice-linux32-nightly/builds/76 Buildbot URL: http://ci.apache.org/ Buildslave for this Build: bb-vm2_ubuntu_32bit Build Reason: The Nightly scheduler named 'openoffice-linux32-nightly' triggered this build Build Source Stamp: [branch openoffice/trunk] HEAD Blamelist: Build succeeded! Sincerely, -The Buildbot
svn commit: r964468 - /websites/production/openoffice/content/
Author: pescetti Date: Sat Sep 5 17:50:18 2015 New Revision: 964468 Log: Publishing svnmucc operation to openoffice site by pescetti Added: websites/production/openoffice/content/ - copied from r964467, websites/staging/openoffice/trunk/content/