summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-07 16:14:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-07 20:06:38 +0100
commit63de3197af6ce874e441936638c4a9a73af4b1a3 (patch)
tree91a167ebe78002c5bb8788a8853325de46896ee3 /sal
parent85bdc19fcb6a1a71d6aef0f00b8610f4b85e5a00 (diff)
WaE: msvc, unreachable code
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/osl/file/osl_old_test_file.cxx24
1 files changed, 7 insertions, 17 deletions
diff --git a/sal/qa/osl/file/osl_old_test_file.cxx b/sal/qa/osl/file/osl_old_test_file.cxx
index 3d12b76a6cba..d8ab73a0e0d7 100644
--- a/sal/qa/osl/file/osl_old_test_file.cxx
+++ b/sal/qa/osl/file/osl_old_test_file.cxx
@@ -115,12 +115,10 @@ const char * const aSource3[ ] =
using ::rtl::OUString;
using ::rtl::OUStringToOString;
using ::rtl::OString;
+
void oldtestfile::test_file_001()
{
-#ifdef WIN32
- return;
-#endif
-
+#ifndef WIN32
OUString base1( RTL_CONSTASCII_USTRINGPARAM( "file:///" TEST_VOLUME "bla" ) );
int i;
for( i = 0 ; aSource1[i] ; i +=2 )
@@ -142,15 +140,12 @@ void oldtestfile::test_file_001()
OUString err1( RTL_CONSTASCII_USTRINGPARAM( "../.." ) );
OUString target;
// CPPUNIT_ASSERT_MESSAGE("failure #11", osl_File_E_None != osl_getAbsoluteFileURL( base1.pData , err1.pData , &target.pData ) );
-
+#endif
}
void oldtestfile::test_file_002()
{
-#ifdef WIN32
- return;
-#endif
-
+#ifndef WIN32
OUString base2( RTL_CONSTASCII_USTRINGPARAM( "file:///" TEST_VOLUME "bla/blubs/schnubbel" ) );
int i;
for( i = 0 ; aSource2[i] ; i +=2 )
@@ -166,16 +161,13 @@ void oldtestfile::test_file_002()
}
OString o = OUStringToOString( target , RTL_TEXTENCODING_ASCII_US );
OString obase = OUStringToOString( base2 , RTL_TEXTENCODING_ASCII_US );
-// fprintf( stderr, "%d %s + %s = %s\n" ,e, obase.getStr(), aSource2[i], o.pData->buffer );
}
+#endif
}
void oldtestfile::test_file_004()
{
-#ifdef WIN32
- return;
-#endif
-
+#ifndef WIN32
OUString base4( RTL_CONSTASCII_USTRINGPARAM( "file:///" TEST_VOLUME "bla/" ) );
int i;
for( i = 0 ; aSource1[i] ; i +=2 )
@@ -192,9 +184,7 @@ void oldtestfile::test_file_004()
OString obase = OUStringToOString( base4 , RTL_TEXTENCODING_ASCII_US );
//fprintf( stderr, "%d %s + %s = %s\n" ,e, obase.getStr(), aSource1[i], o.pData->buffer );
}
-
-
-// fprintf( stderr, "test_file done\n" );
+#endif
}
} // namespace osl_test_file