[Libreoffice] sal/qa/osl/file/osl_old_test_file.cxx

Caolán McNamara caolanm at redhat.com
Mon Apr 4 08:58:16 PDT 2011


On Sat, 2011-04-02 at 20:40 +0200, Christina Roßmanith wrote:
> Hi,
> 
> is anybody else having trouble to compile osl_old_test_file.cxx? I have 
> to comment out lines 133 and 263, then everything is fine:
> 
> 133: CPPUNIT_ASSERT_MESSAGE("failure #1.1",  target.equalsAscii( 
> aSource1[i+1] ) );
> 263: CPPUNIT_ASSERT_MESSAGE("failure #10.1",  target.equalsAscii( 
> aSource1[i+1] ) );

echo $SAL_ALLOW_LINKOO_SYMLINKS

if its 1, the test fails, seeing as normally...
osl_getAbsoluteFileUrl("file:///foo", "a/..", output); gives
file:///foo
but with the above set it gives...
file:///foo/a/..

the SAL_ALLOW_LINKOO_SYMLINKS is set by the ooenv hack, so if you make
dev-install and then source that ooenv manually then the env is
compromised for future runs.

Fixed now by clearing this env value in the test itself, I had seen this
before and it baffled me, glad to get to the bottom of it now :-)

C.



More information about the LibreOffice mailing list