Author: damjan
Date: Tue Oct 27 17:32:34 2015
New Revision: 1710853
URL: http://svn.apache.org/viewvc?rev=1710853&view=rev
Log:
Fix some main/sal unit tests on Windows, remove unneeded OOO_SUBSEQUENT_TESTS,
and run all that pass during the build.
Modified:
openoffice/trunk/main/sal/prj/build.lst
openoffice/trunk/main/sal/qa/osl/mutex/makefile.mk
openoffice/trunk/main/sal/qa/osl/mutex/osl_Mutex.cxx
openoffice/trunk/main/sal/qa/osl/profile/makefile.mk
openoffice/trunk/main/sal/qa/osl/setthreadname/makefile.mk
openoffice/trunk/main/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
openoffice/trunk/main/sal/qa/rtl/doublelock/rtl_doublelocking.cxx
openoffice/trunk/main/sal/qa/rtl/math/makefile.mk
openoffice/trunk/main/sal/qa/rtl/uuid/rtl_Uuid.cxx
Modified: openoffice/trunk/main/sal/prj/build.lst
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/prj/build.lst?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/prj/build.lst (original)
+++ openoffice/trunk/main/sal/prj/build.lst Tue Oct 27 17:32:34 2015
@@ -14,13 +14,24 @@ sa sal\qa
sa sal\osl\unx
nmake - u sa_oslu sa_tc.u sa_inc NULL
sa sal\osl\all
nmake - all sa_oslall sa_tc.u sa_inc NULL
sa sal\util
nmake - all sa_util sa_tc.u sa_oslall sa_uwinapi.n sa_kill.n
sa_onlineupdate.n sa_osln.n sa_oslp.p sa_oslu.u sa_rtl sa_textenc NULL
-sa sal\qa\sal
nmake - all sa_qa_sal sa_util sa_cpprt.u NULL
-sa sal\qa\osl\condition nmake -
all sa_qa_osl_condition sa_util sa_cpprt.u NULL
-sa sal\qa\osl\pipe nmake
- all sa_qa_osl_pipe sa_util sa_cpprt.u NULL
sa sal\qa\ByteSequence nmake
- all sa_qa_ByteSequence sa_util sa_cpprt.u NULL
sa sal\qa\OStringBuffer nmake -
all sa_qa_OStringBuffer sa_util sa_cpprt.u NULL
+sa sal\qa\sal
nmake - all sa_qa_sal sa_util sa_cpprt.u NULL
+sa sal\qa\osl\condition nmake -
all sa_qa_osl_condition sa_util sa_cpprt.u NULL
sa sal\qa\osl\mutex nmake
- all sa_qa_osl_mutex sa_util sa_cpprt.u NULL
+sa sal\qa\osl\pipe nmake
- all sa_qa_osl_pipe sa_util sa_cpprt.u NULL
sa sal\qa\osl\profile nmake
- all sa_qa_osl_profile sa_util sa_cpprt.u NULL
sa sal\qa\osl\setthreadname nmake -
all sa_qa_osl_setthreadname sa_util sa_cpprt.u NULL
sa sal\qa\osl\thread nmake
- all sa_qa_osl_thread sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\alloc nmake
- all sa_qa_rtl_alloc sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\cipher nmake
- all sa_qa_rtl_cipher sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\crc32 nmake
- all sa_qa_rtl_crc32 sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\digest nmake
- all sa_qa_rtl_digest sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\doublelock nmake -
all sa_qa_rtl_doublelock sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\locale nmake
- all sa_qa_rtl_locale sa_util sa_cpprt.u NULL
sa sal\qa\rtl\math nmake
- all sa_qa_rtl_math sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\oustringbuffer nmake -
all sa_qa_rtl_oustringbuffer sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\process nmake
- all sa_qa_rtl_process sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\random nmake
- all sa_qa_rtl_random sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\uri nmake
- all sa_qa_rtl_uri sa_util sa_cpprt.u NULL
+sa sal\qa\rtl\uuid nmake
- all sa_qa_rtl_uuid sa_util sa_cpprt.u NULL
Modified: openoffice/trunk/main/sal/qa/osl/mutex/makefile.mk
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/mutex/makefile.mk?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/qa/osl/mutex/makefile.mk (original)
+++ openoffice/trunk/main/sal/qa/osl/mutex/makefile.mk Tue Oct 27 17:32:34 2015
@@ -21,10 +21,6 @@
-.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
-nothing .PHONY:
-.ELSE
-
PRJ=..$/..$/..
PRJNAME=sal
@@ -65,5 +61,3 @@ APP1TEST = enabled
.INCLUDE : target.mk
.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"
-
-.END
Modified: openoffice/trunk/main/sal/qa/osl/mutex/osl_Mutex.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/mutex/osl_Mutex.cxx?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/qa/osl/mutex/osl_Mutex.cxx (original)
+++ openoffice/trunk/main/sal/qa/osl/mutex/osl_Mutex.cxx Tue Oct 27 17:32:34
2015
@@ -30,6 +30,13 @@
#include "gtest/gtest.h"
#include <osl_Mutex_Const.h>
+#ifdef WNT
+#include <tools/prewin.h>
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <tools/postwin.h>
+#endif
+
using namespace osl;
using namespace rtl;
@@ -111,7 +118,7 @@ public:
~IncreaseThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) <<
"#IncreaseThread does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) <<
"#IncreaseThread does not shutdown properly.\n";
}
protected:
struct resource *pResource;
@@ -139,7 +146,7 @@ public:
~DecreaseThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) <<
"#DecreaseThread does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) <<
"#DecreaseThread does not shutdown properly.\n";
}
protected:
struct resource *pResource;
@@ -177,7 +184,7 @@ public:
~PutThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) << "#PutThread
does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) << "#PutThread
does not shutdown properly.\n";
}
protected:
struct chain* pChain;
@@ -215,7 +222,7 @@ public:
~HoldThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) << "#HoldThread
does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) << "#HoldThread
does not shutdown properly.\n";
}
protected:
Mutex* pMyMutex;
@@ -237,7 +244,7 @@ public:
~WaitThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) << "#WaitThread
does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) << "#WaitThread
does not shutdown properly.\n";
}
protected:
Mutex* pMyMutex;
@@ -261,7 +268,7 @@ public:
~GlobalMutexThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) <<
"#GlobalMutexThread does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) <<
"#GlobalMutexThread does not shutdown properly.\n";
}
protected:
void SAL_CALL run( )
@@ -562,7 +569,7 @@ public:
~GuardThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) << "#GuardThread
does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) << "#GuardThread
does not shutdown properly.\n";
}
protected:
Mutex* pMyMutex;
@@ -640,7 +647,7 @@ public:
~ClearGuardThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) <<
"#ClearGuardThread does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) <<
"#ClearGuardThread does not shutdown properly.\n";
}
protected:
Mutex* pMyMutex;
@@ -767,7 +774,7 @@ public:
~ResetGuardThread( )
{
- ASSERT_TRUE(sal_False == this -> isRunning( )) <<
"#ResetGuardThread does not shutdown properly.\n";
+ EXPECT_TRUE(sal_False == this -> isRunning( )) <<
"#ResetGuardThread does not shutdown properly.\n";
}
protected:
Mutex* pMyMutex;
Modified: openoffice/trunk/main/sal/qa/osl/profile/makefile.mk
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/profile/makefile.mk?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/qa/osl/profile/makefile.mk (original)
+++ openoffice/trunk/main/sal/qa/osl/profile/makefile.mk Tue Oct 27 17:32:34
2015
@@ -21,10 +21,6 @@
-.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
-nothing .PHONY:
-.ELSE
-
PRJ=..$/..$/..
PRJNAME=sal
@@ -60,5 +56,3 @@ APP1TEST = enabled
.INCLUDE : target.mk
.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"
-
-.END
Modified: openoffice/trunk/main/sal/qa/osl/setthreadname/makefile.mk
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/osl/setthreadname/makefile.mk?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/qa/osl/setthreadname/makefile.mk (original)
+++ openoffice/trunk/main/sal/qa/osl/setthreadname/makefile.mk Tue Oct 27
17:32:34 2015
@@ -21,10 +21,6 @@
-.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
-nothing .PHONY:
-.ELSE
-
PRJ = ..$/..$/..
PRJNAME = sal
TARGET = qa_osl_setthreadname
@@ -48,5 +44,3 @@ APP1TEST = enabled
.INCLUDE: target.mk
.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"
-
-.END
Modified: openoffice/trunk/main/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx (original)
+++ openoffice/trunk/main/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx Tue Oct 27
17:32:34 2015
@@ -32,6 +32,13 @@
#include <stdlib.h>
#include <algorithm> // STL
+#ifdef WNT
+#define WIN32_LEAN_AND_MEAN
+#include <tools/prewin.h>
+#include <windows.h>
+#include <tools/postwin.h>
+#endif
+
#include "gtest/gtest.h"
//#include "stringhelper.hxx"
//#include "valueequal.hxx"
Modified: openoffice/trunk/main/sal/qa/rtl/doublelock/rtl_doublelocking.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/rtl/doublelock/rtl_doublelocking.cxx?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/qa/rtl/doublelock/rtl_doublelocking.cxx (original)
+++ openoffice/trunk/main/sal/qa/rtl/doublelock/rtl_doublelocking.cxx Tue Oct
27 17:32:34 2015
@@ -40,6 +40,13 @@
#include "gtest/gtest.h"
+#ifdef WNT
+#define WIN32_LEAN_AND_MEAN
+#include <tools/prewin.h>
+#include <windows.h>
+#include <tools/postwin.h>
+#endif
+
//
-----------------------------------------------------------------------------
#define CONST_TEST_STRING "gregorian"
Modified: openoffice/trunk/main/sal/qa/rtl/math/makefile.mk
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/rtl/math/makefile.mk?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/qa/rtl/math/makefile.mk (original)
+++ openoffice/trunk/main/sal/qa/rtl/math/makefile.mk Tue Oct 27 17:32:34 2015
@@ -21,10 +21,6 @@
-.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
-nothing .PHONY:
-.ELSE
-
PRJ = ../../..
PRJNAME = sal
TARGET = qa_rtl_profile
@@ -50,4 +46,3 @@ APP1TEST = enabled
.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"
-.END # "$(OOO_SUBSEQUENT_TESTS)" == ""
Modified: openoffice/trunk/main/sal/qa/rtl/uuid/rtl_Uuid.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/qa/rtl/uuid/rtl_Uuid.cxx?rev=1710853&r1=1710852&r2=1710853&view=diff
==============================================================================
--- openoffice/trunk/main/sal/qa/rtl/uuid/rtl_Uuid.cxx (original)
+++ openoffice/trunk/main/sal/qa/rtl/uuid/rtl_Uuid.cxx Tue Oct 27 17:32:34 2015
@@ -31,6 +31,13 @@
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
+#ifdef WNT
+#define WIN32_LEAN_AND_MEAN
+#include <tools/prewin.h>
+#include <windows.h>
+#include <tools/postwin.h>
+#endif
+
#ifdef UNX
#include <unistd.h>
#include <time.h>