summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-24 20:36:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-24 20:36:25 +0000
commit39d15024ebf47104bae179c3351c6af842edd0bd (patch)
treea15210af9fec3f3fee112cde95eaa186fa0f675f /svl/qa
parent70bd2219d42c3669e90f1d4d0663031dc8a635ed (diff)
Get this to work under windows.
The test code itself isn't compiled with SVL_DLLIMPLEMENTATION so either it gets compiled with SVL_DLLIMPLEMENTATION and links to the .lib or it gets compiled without it and links to the .dll and sticks to the exported methods. In this case we can currently take the latter methinks.
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/makefile.mk22
-rw-r--r--svl/qa/unit/svl.cxx23
2 files changed, 11 insertions, 34 deletions
diff --git a/svl/qa/unit/makefile.mk b/svl/qa/unit/makefile.mk
index e039c410c8bd..ab59123b7efc 100644
--- a/svl/qa/unit/makefile.mk
+++ b/svl/qa/unit/makefile.mk
@@ -39,19 +39,19 @@ CFLAGSCXX += $(CPPUNIT_CFLAGS) -I../../inc
SHL1TARGET = $(TARGET)
SHL1OBJS = $(SLO)$/svl.obj
SHL1STDLIBS= \
- $(UNOTOOLSLIB) \
- $(TOOLSLIB) \
- $(I18NISOLANGLIB) \
- $(UCBHELPERLIB) \
- $(COMPHELPERLIB) \
- $(CPPUHELPERLIB) \
- $(CPPULIB) \
- $(SOTLIB) \
- $(SALLIB) \
+ $(UNOTOOLSLIB) \
+ $(SVLLIB) \
+ $(TOOLSLIB) \
+ $(I18NISOLANGLIB) \
+ $(UCBHELPERLIB) \
+ $(COMPHELPERLIB) \
+ $(CPPUHELPERLIB) \
+ $(CPPULIB) \
+ $(SOTLIB) \
+ $(SALLIB) \
$(CPPUNITLIB)
SHL1IMPLIB = i$(SHL1TARGET)
-SHL1LIBS=$(SLB)$/svl.lib
DEF1NAME = $(SHL1TARGET)
SHL1VERSIONMAP=version.map
@@ -88,7 +88,7 @@ test .PHONY: $(SHL1TARGETN) $(MISC)/$(TARGET)/services.rdb $(MISC)$/$(TARGET)$/t
@echo - start unit test \#1 on library $(SHL1TARGETN)
@echo In the environment: STAR_RESOURCEPATH=$$STAR_RESOURCEPATH
@echo ----------------------------------------------------------
- $(CPPUNITTESTER) $(SHL1TARGETN) -headless -invisible \
+ $(CPPUNITTESTER) $(SHL1TARGETN) \
-env:UNO_SERVICES=$(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb \
-env:UNO_TYPES="$(my_file)$(PWD)/$(MISC)/$(TARGET)/types.rdb $(my_file)$(PWD)/$(MISC)/$(TARGET)/udkapi.rdb" \
-env:OOO_BASE_DIR="$(my_file)$(PWD)/$(MISC)/$(TARGET)" \
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 464795940375..a56c90ff0d61 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -26,18 +26,6 @@
* instead of those above.
*/
-// TODO ...
-// officecfg: can we move this into our skeleton ?
-// Solve the Setup.xcu problem pleasantly [ custom version ? ]
-// deliver.pl
-// don't call regcomp if we don't have it.
-// In an ideal world
-// a) scp2 goes away and logic moved into the deliver d.lst
-// b) install set gets built incrementally as the build progresses
-// c) the new .xml component registration stuff then removes
-// the need for manually calling regcomp and knowing what
-// services we need, and in what .so they are implemented
-
#include "precompiled_svl.hxx"
#ifdef WNT
@@ -58,7 +46,6 @@
#include <cppuhelper/bootstrap.hxx>
#include <comphelper/processfactory.hxx>
-#include <comphelper/oslfile2streamwrap.hxx>
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
#include <com/sun/star/sheet/GeneralFunction.hpp>
@@ -69,22 +56,12 @@
#include "svl/zforlist.hxx"
#include "svl/zformat.hxx"
-#include <iostream>
-
using namespace ::com::sun::star;
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
-using ::std::cout;
-using ::std::endl;
namespace {
-::std::ostream& operator<< (::std::ostream& os, const OUString& str)
-{
- return os << ::rtl::OUStringToOString(str, RTL_TEXTENCODING_UTF8).getStr();
-}
-
-
class Test : public CppUnit::TestFixture {
public:
Test();