summaryrefslogtreecommitdiff
path: root/sal/workben/testpipe.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-23 16:30:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-23 16:33:02 +0000
commit924908a09bfc917a6d8d1117b757c0b262f0d1cb (patch)
tree850fd74f7380976588cfaae104c520c234431a03 /sal/workben/testpipe.cxx
parenta8a1b8d0fc1bb172d8dd9d7de2bec013fa24fc76 (diff)
make more of the workbens build, and add performance test
Diffstat (limited to 'sal/workben/testpipe.cxx')
-rw-r--r--sal/workben/testpipe.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/sal/workben/testpipe.cxx b/sal/workben/testpipe.cxx
index cd4671da714c..ed4b653dcf2a 100644
--- a/sal/workben/testpipe.cxx
+++ b/sal/workben/testpipe.cxx
@@ -44,8 +44,8 @@ const char szTestString[] = "This is a test";
char szBuffer[256];
const char * cp;
-Size_t n;
-sSize_t nChars;
+size_t n;
+sal_Int32 nChars;
// osl specific variables
oslPipe Pipe;
@@ -91,10 +91,9 @@ int main (int argc, const char *argv[])
0,
osl_Process_NORMAL,
0,
- NULL,
NULL,
- 0,
- NULL,
+ NULL,
+ 0,
&Process );
if( ProcessError != osl_Process_E_None )
@@ -158,8 +157,8 @@ int main (int argc, const char *argv[])
osl_freeProcessHandle( Process );
// schliesse die Pipes
- osl_destroyPipe( C1Pipe );
- osl_destroyPipe( Pipe );
+ osl_releasePipe( C1Pipe );
+ osl_releasePipe( Pipe );
printf( "TestPipe Server: test passed.\n" );
return 0;