summaryrefslogtreecommitdiff
path: root/stoc/test/testconv.cxx
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-03-19 11:09:14 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-03-19 11:09:14 +0000
commit3de02ddb4e36a7a1a8bd492772bb225395c2adec (patch)
tree11d57d13eb83f8e5173f68eaa87ca498abd762b9 /stoc/test/testconv.cxx
parent1f63800f14dc0bb10ff55bf3545a4f85d76c5b0f (diff)
*** empty log message ***
Diffstat (limited to 'stoc/test/testconv.cxx')
-rw-r--r--stoc/test/testconv.cxx22
1 files changed, 18 insertions, 4 deletions
diff --git a/stoc/test/testconv.cxx b/stoc/test/testconv.cxx
index fa3e1d7b5c22..0d6ae33174f6 100644
--- a/stoc/test/testconv.cxx
+++ b/stoc/test/testconv.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: testconv.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: jl $ $Date: 2001-03-12 15:27:20 $
+ * last change: $Author: dbo $ $Date: 2001-03-19 12:09:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -226,6 +226,16 @@ static sal_Bool convertTo( const Type & rDestType, const Any & rVal, sal_Bool bE
printf( " failed, but success was expected! [" );
printf( aExcMsg.getStr() );
printf( "]\n" );
+#ifdef DEBUG
+ // for debugging, to trace again
+ try
+ {
+ aRet = s_xConverter->convertTo( rVal, rDestType );
+ }
+ catch (Exception &)
+ {
+ }
+#endif
return sal_False;
}
if (!bExpectSuccess && bCanConvert)
@@ -235,10 +245,14 @@ static sal_Bool convertTo( const Type & rDestType, const Any & rVal, sal_Bool bE
printf( " to " );
printValue( aRet );
printf( " was successful, but was not expected to be!\n" );
+#ifdef DEBUG
+ // for debugging, to trace again
+ aRet = s_xConverter->convertTo( rVal, rDestType );
+#endif
return sal_False;
}
-#ifdef __MAG_MARKUS_NICHT___EXTRA_AUSGABEN__
+#ifdef __RECONVERSION_OUTPUT__
//= re-conversion output =
if (bCanConvert)
{
@@ -456,7 +470,7 @@ static sal_Int32 initBlocks( ConvBlock * pTestBlocks )
aVal <<= (sal_Int32)( 0xffffffff ); // is -1
pTestBlocks[nElems++] = ConvBlock( aVal, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0 );
// st,do,fl,u3,i3,u1,i1,by,bo,ch,tc,si,sa
- aVal <<= (sal_Int32)( -0x80000000 );
+ aVal <<= (sal_Int32)( -(sal_Int32)0x80000000 );
pTestBlocks[nElems++] = ConvBlock( aVal, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 );
// st,do,fl,u3,i3,u1,i1,by,bo,ch,tc,si,sa
aVal <<= (sal_Int32)( 0x7fffffff );