summaryrefslogtreecommitdiff
path: root/connectivity/qa/connectivity
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2012-11-07 23:15:37 +0100
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-07 23:06:25 +0000
commitc68cd0125dcf8d9f57ee0e1a540a939859e8eed6 (patch)
tree0064a3666d09f36ed07671fc527c8fdd601e0859 /connectivity/qa/connectivity
parentdb8ab560b45e6433946335fdabc85dfa9c75374b (diff)
enable ado driver unit test again
The problem is that ado driver creates a link file in the tree leaving it dirty: tinderbox doesn't like it. Instead of reading the mdb file direct from srcdir we copy it first to workdir and read it from there with the new function: getPathFromWorkdir. Thank you Norbert! Change-Id: I504bc26b80686db55a505bac19a95cc9c6022fcc Reviewed-on: https://gerrit.libreoffice.org/1004 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'connectivity/qa/connectivity')
-rwxr-xr-xconnectivity/qa/connectivity/ado/DriverTest.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/connectivity/qa/connectivity/ado/DriverTest.cxx b/connectivity/qa/connectivity/ado/DriverTest.cxx
index c2e357e4f73f..ee96eebd2fa5 100755
--- a/connectivity/qa/connectivity/ado/DriverTest.cxx
+++ b/connectivity/qa/connectivity/ado/DriverTest.cxx
@@ -65,10 +65,8 @@ void AdoDriverTest::setUp()
m_xAdoComponent = getMultiServiceFactory()->createInstance("com.sun.star.comp.sdbc.ado.ODriver");
CPPUNIT_ASSERT_MESSAGE("no ado component!", m_xAdoComponent.is());
- // is this the best way to pass test file through URL?
- // may be take a custom Sequence< PropertyValue > route?
OUString url = OUString("sdbc:ado:access:PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=") +
- getPathFromSrc("/connectivity/qa/connectivity/ado/TS001018407.mdb");
+ getPathFromWorkdir("/CppunitTest/TS001018407.mdb");
Sequence< PropertyValue > info;
Reference< XDriver> xDriver(m_xAdoComponent, UNO_QUERY);