summaryrefslogtreecommitdiff
path: root/sal/qa
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-22 11:13:56 +0200
committerTor Lillqvist <tml@iki.fi>2013-02-22 11:15:38 +0200
commitfc090acf829d0053c0a611acd73f08b51128031d (patch)
tree981e34facb049c5fd4eaecf4ec3244e029a8c4d5 /sal/qa
parentea4581a914cb1aad29f16b73e35350f05f8adc1c (diff)
Fix misspellings detected by https://github.com/lyda/misspell-check
Just as a test to check the usefulness of that tool. It needs some improvement before really usable. Change-Id: I875e79c1992ed5f3b695736b0d49938ad0ba2d55
Diffstat (limited to 'sal/qa')
-rw-r--r--sal/qa/osl/file/osl_File.cxx14
-rw-r--r--sal/qa/osl/mutex/osl_Mutex.cxx14
-rw-r--r--sal/qa/osl/pipe/osl_Pipe.cxx6
-rw-r--r--sal/qa/osl/socket/osl_ConnectorSocket.cxx2
-rw-r--r--sal/qa/osl/socket/osl_Socket.cxx8
-rw-r--r--sal/qa/osl/socket/osl_SocketAddr.cxx4
-rw-r--r--sal/qa/osl/socket/osl_StreamSocket.cxx8
-rw-r--r--sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx2
-rw-r--r--sal/qa/rtl_strings/rtl_OUString.cxx2
9 files changed, 30 insertions, 30 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 79a52fb4497a..b4cd2ee3fc6c 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -327,7 +327,7 @@ inline sal_Bool isURL( const ::rtl::OUString pathname )
return ( ( pathname.indexOf( aPreURL ) == 0 ) ? sal_True : sal_False );
}
-/** concat two part to form a URL or system path, add PATH_SEPERATOR between them if necessary, add "file:///" to begining if necessary.
+/** concat two part to form a URL or system path, add PATH_SEPERATOR between them if necessary, add "file:///" to beginning if necessary.
*/
inline void concatURL( ::rtl::OUString & pathname1, const ::rtl::OUString & pathname2 )
{
@@ -521,7 +521,7 @@ inline sal_Bool ifFileExist( const ::rtl::OUString & str )
return ( osl::FileBase::E_None == testFile.open( osl_File_OpenFlag_Read ) );
}
-//check if the file can be writen
+//check if the file can be written
inline sal_Bool ifFileCanWrite( const ::rtl::OUString & str )
{
sal_Bool bCheckResult = sal_False;
@@ -976,7 +976,7 @@ namespace osl_FileBase
the second only on windows based systems
the first parameter are a file URL where we want to get the system path of,
the second parameter is the assumed error of the osl_getSystemPathFromFileURL() function,
- the thrid parameter is the assumed result string, the string will only test, if it's length is greater 0
+ the third parameter is the assumed result string, the string will only test, if it's length is greater 0
*/
void SystemPath_FileURL::getSystemPathFromFileURL_001_1()
@@ -1134,7 +1134,7 @@ namespace osl_FileBase
}
- //CJK charactors case
+ //CJK characters case
void SystemPath_FileURL::getSystemPathFromFileURL_005()
{
::rtl::OUString aUStr;
@@ -3909,7 +3909,7 @@ namespace osl_File
nError1 = testFile.close();
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
- CPPUNIT_ASSERT_MESSAGE( "test for read function: read from a special positon in the file",
+ CPPUNIT_ASSERT_MESSAGE( "test for read function: read from a special position in the file",
( 52 == nFilePointer ) && ( 26 == nCount_read ) && ( 0 == strncmp( buffer_read, &pBuffer_Char[26], 26 ) ) );
}
@@ -3958,7 +3958,7 @@ namespace osl_File
//get the current pointer;
nError1 = testFile.getPos( nFilePointer );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
- //reset pointer to the begining;
+ //reset pointer to the beginning;
nError1 = testFile.setPos( osl_Pos_Absolut, 0 );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
nError1 = testFile.read( buffer_read, 10, nCount_read );
@@ -6221,7 +6221,7 @@ class GlobalObject
{
try
{
- //~ special clean up task in Windows and Unix seperately;
+ //~ special clean up task in Windows and Unix separately;
#if ( defined UNX )
//~ some clean up task for UNIX OS
;
diff --git a/sal/qa/osl/mutex/osl_Mutex.cxx b/sal/qa/osl/mutex/osl_Mutex.cxx
index 80c10ebadd5b..0e9ce85f1f06 100644
--- a/sal/qa/osl/mutex/osl_Mutex.cxx
+++ b/sal/qa/osl/mutex/osl_Mutex.cxx
@@ -484,7 +484,7 @@ namespace osl_Mutex
if ( bRes2 == sal_True )
aMutex.release( );
- CPPUNIT_ASSERT_MESSAGE( "release Mutex: try to aquire before and after the mutex has been released",
+ CPPUNIT_ASSERT_MESSAGE( "release Mutex: try to acquire before and after the mutex has been released",
bRes1 == sal_False && bRes2 == sal_True && bRunning == sal_True );
}
@@ -630,7 +630,7 @@ namespace osl_Guard
aMutex.release( );
myThread.join( );
- CPPUNIT_ASSERT_MESSAGE("GuardThread constructor: reference initialization, aquire the mutex before running the thread, then check if it is blocking.",
+ CPPUNIT_ASSERT_MESSAGE("GuardThread constructor: reference initialization, acquire the mutex before running the thread, then check if it is blocking.",
bRes == sal_True);
}
@@ -694,7 +694,7 @@ namespace osl_ClearableGuard
/// it will return sal_False if the aMutex has not been Guarded.
sal_Bool bRes = aMutex.release( );
- CPPUNIT_ASSERT_MESSAGE("ClearableMutexGuard constructor, test the aquire operation when initilized.",
+ CPPUNIT_ASSERT_MESSAGE("ClearableMutexGuard constructor, test the acquire operation when initilized.",
bRes == sal_True );
}
@@ -708,7 +708,7 @@ namespace osl_ClearableGuard
/// it will return sal_False if the aMutex has not been Guarded.
sal_Bool bRes = aMutex.release( );
- CPPUNIT_ASSERT_MESSAGE("ClearableMutexGuard constructor, test the aquire operation when initilized, we use reference constructor this time.",
+ CPPUNIT_ASSERT_MESSAGE("ClearableMutexGuard constructor, test the acquire operation when initilized, we use reference constructor this time.",
bRes == sal_True );
}
@@ -833,7 +833,7 @@ namespace osl_ResettableGuard
/// it will return sal_False if the aMutex has not been Guarded.
sal_Bool bRes = aMutex.release( );
- CPPUNIT_ASSERT_MESSAGE("ResettableMutexGuard constructor, test the aquire operation when initilized.",
+ CPPUNIT_ASSERT_MESSAGE("ResettableMutexGuard constructor, test the acquire operation when initilized.",
bRes == sal_True );
}
@@ -847,7 +847,7 @@ namespace osl_ResettableGuard
/// it will return sal_False if the aMutex has not been Guarded.
sal_Bool bRes = aMutex.release( );
- CPPUNIT_ASSERT_MESSAGE( "ResettableMutexGuard constructor, test the aquire operation when initilized, we use reference constructor this time.",
+ CPPUNIT_ASSERT_MESSAGE( "ResettableMutexGuard constructor, test the acquire operation when initilized, we use reference constructor this time.",
bRes == sal_True );
}
@@ -895,7 +895,7 @@ namespace osl_ResettableGuard
myMutexGuard.reset( );
sal_Bool bRes1 = aMutex.release( );
- CPPUNIT_ASSERT_MESSAGE( "ResettableMutexGuard method: reset, release after clear and reset, on Solaris, the mutex can be release without aquire, so it can not passed on (SOLARIS), but not the reason for reset_002",
+ CPPUNIT_ASSERT_MESSAGE( "ResettableMutexGuard method: reset, release after clear and reset, on Solaris, the mutex can be release without acquire, so it can not passed on (SOLARIS), but not the reason for reset_002",
( sal_False == bRes ) && ( sal_True == bRes1 ) );
}
diff --git a/sal/qa/osl/pipe/osl_Pipe.cxx b/sal/qa/osl/pipe/osl_Pipe.cxx
index f2d79850feab..93b3b17c2632 100644
--- a/sal/qa/osl/pipe/osl_Pipe.cxx
+++ b/sal/qa/osl/pipe/osl_Pipe.cxx
@@ -230,7 +230,7 @@ namespace osl_Pipe
///bRes1 = aNoAcquirePipe.is( );
- CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no aquire of handle, only validation test, do not know how to test no acquire.",
+ CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no acquire of handle, only validation test, do not know how to test no acquire.",
sal_True == bRes );
}
@@ -245,7 +245,7 @@ namespace osl_Pipe
bRes = aAcquirePipe.is( );
bRes1 = aAcquirePipe1.is( );
- CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no aquire of handle.only validation test, do not know how to test no acquire.",
+ CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no acquire of handle.only validation test, do not know how to test no acquire.",
sal_True == bRes && sal_False == bRes1 );
}
@@ -748,7 +748,7 @@ namespace osl_StreamPipe
bRes = aNoAcquirePipe.is( );
aPipe.clear( );
- CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no aquire of handle, only validation test, do not know how to test no acquire.",
+ CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no acquire of handle, only validation test, do not know how to test no acquire.",
sal_True == bRes );
}
diff --git a/sal/qa/osl/socket/osl_ConnectorSocket.cxx b/sal/qa/osl/socket/osl_ConnectorSocket.cxx
index 271bcc83a61e..50f19b19d5af 100644
--- a/sal/qa/osl/socket/osl_ConnectorSocket.cxx
+++ b/sal/qa/osl/socket/osl_ConnectorSocket.cxx
@@ -201,7 +201,7 @@ namespace osl_ConnectorSocket
sal_True == compareSocketAddr( saPeerSocketAddr, saLocalSocketAddr ) ) ;
}
// really an error or just delayed
- // how to design senarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
+ // how to design scenarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
void connect_003()
{
::osl::SocketAddr saTargetSocketAddr1( rtl::OUString("127.0.0.1"), IP_PORT_MYPORT3 );
diff --git a/sal/qa/osl/socket/osl_Socket.cxx b/sal/qa/osl/socket/osl_Socket.cxx
index 5da5af638914..7f126f6ad24e 100644
--- a/sal/qa/osl/socket/osl_Socket.cxx
+++ b/sal/qa/osl/socket/osl_Socket.cxx
@@ -847,7 +847,7 @@ namespace osl_SocketAddr
::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_FTP );
printUString(saSocketAddr.getHostname( ), "ctors_hostname_port_001:getHostname");
- CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: do a constructor using tcpip spec, check the result.",
+ CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specific constructor function: do a constructor using tcpip spec, check the result.",
saSocketAddr.is( ) == sal_True &&
( saSocketAddr.getPort( ) == IP_PORT_FTP )/*&&
( sal_True == compareUString( saSocketAddr.getHostname( ), aHostName1 ) ) */);
@@ -859,7 +859,7 @@ namespace osl_SocketAddr
/// tcpip-specif constructor.
::osl::SocketAddr saSocketAddr( aHostIpInval1, IP_PORT_MYPORT2 );
- CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
+ CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specific constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
}
CPPUNIT_TEST_SUITE( ctors );
CPPUNIT_TEST( ctors_none );
@@ -3071,7 +3071,7 @@ protected:
oslSocketResult eResult = asSocket.acceptConnection( ssConnectionSocket );
CPPUNIT_ASSERT_MESSAGE("shutdown_002: acceptConnection fail", eResult == osl_Socket_Ok );
- /* set socket option SO_LINGER 0, so close immediatly */
+ /* set socket option SO_LINGER 0, so close immediately */
linger aLingerSet;
sal_Int32 nBufferLen = sizeof( struct linger );
aLingerSet.l_onoff = 0;
@@ -3296,7 +3296,7 @@ namespace osl_ConnectorSocket
sal_True == compareSocketAddr( saPeerSocketAddr, saLocalSocketAddr ) ) ;
}
// really an error or just delayed
- // how to design senarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
+ // how to design scenarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
void connect_003()
{
::osl::SocketAddr saTargetSocketAddr1( aHostIp1, IP_PORT_MYPORT3 );
diff --git a/sal/qa/osl/socket/osl_SocketAddr.cxx b/sal/qa/osl/socket/osl_SocketAddr.cxx
index 1e8529a40cd7..50e6c16743fb 100644
--- a/sal/qa/osl/socket/osl_SocketAddr.cxx
+++ b/sal/qa/osl/socket/osl_SocketAddr.cxx
@@ -187,7 +187,7 @@ namespace osl_SocketAddr
::osl::SocketAddr saSocketAddr( rtl::OUString("127.0.0.1"), IP_PORT_FTP );
printUString( saSocketAddr.getHostname( ), "ctors_hostname_port_001:getHostname");
- CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: do a constructor using tcpip spec, check the result.",
+ CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specific constructor function: do a constructor using tcpip spec, check the result.",
saSocketAddr.is( ) == sal_True &&
( saSocketAddr.getPort( ) == IP_PORT_FTP )
);
@@ -199,7 +199,7 @@ namespace osl_SocketAddr
/// tcpip-specif constructor.
::osl::SocketAddr saSocketAddr( rtl::OUString("123.345.67.89"), IP_PORT_MYPORT2 );
- CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
+ CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specific constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
}
CPPUNIT_TEST_SUITE( ctors );
CPPUNIT_TEST( ctors_none );
diff --git a/sal/qa/osl/socket/osl_StreamSocket.cxx b/sal/qa/osl/socket/osl_StreamSocket.cxx
index 22971a2a751a..42fb7e156e22 100644
--- a/sal/qa/osl/socket/osl_StreamSocket.cxx
+++ b/sal/qa/osl/socket/osl_StreamSocket.cxx
@@ -792,7 +792,7 @@ namespace osl_StreamSocket
oslSocketResult eResult = asSocket.acceptConnection( ssConnectionSocket );
CPPUNIT_ASSERT_MESSAGE("shutdown_002: acceptConnection fail", eResult == osl_Socket_Ok );
- /* set socket option SO_LINGER 0, so close immediatly */
+ /* set socket option SO_LINGER 0, so close immediately */
linger aLingerSet;
sal_Int32 nBufferLen = sizeof( struct linger );
aLingerSet.l_onoff = 0;
@@ -957,7 +957,7 @@ namespace osl_StreamSocket
{
t_print("read()\n");
m_nReadCount = aSocket.read( m_pBuffer, m_nBufferSize );
- t_print("%d bytes recived.\n", (int) m_nReadCount);
+ t_print("%d bytes received.\n", (int) m_nReadCount);
}
}
else
@@ -1028,12 +1028,12 @@ namespace osl_StreamSocket
if (! aSocketAddr.setPort(IP_PORT_TEST))
{
- t_print("# cant set port\n" );
+ t_print("# can not set port\n" );
}
if (! aSocketAddr.setHostname(rtl::OUString::createFromAscii(_sAddr.getStr())))
{
- t_print("# cant set hostname/ip\n" );
+ t_print("# can not set hostname/ip\n" );
}
rtl::OUString aHostname = aSocketAddr.getHostname();
diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
index 651e60d87c0a..297777178b4c 100644
--- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
+++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
@@ -166,7 +166,7 @@ namespace rtl_Bootstrap
// but try to use ${file::KEYVALUE} than 'file' will only used out of the 'executable path'/file
// not from the path given from the absolute path.
- // Due to the fact, we create at this position a file (createTestshl2rc() ), we check for existance
+ // Due to the fact, we create at this position a file (createTestshl2rc() ), we check for existence
bool bFileExist = t_fileExist( suGetname );
CPPUNIT_ASSERT_MESSAGE("ctor error with initial file.", bFileExist == true );
}
diff --git a/sal/qa/rtl_strings/rtl_OUString.cxx b/sal/qa/rtl_strings/rtl_OUString.cxx
index 3ba20e7020e6..8758704643c2 100644
--- a/sal/qa/rtl_strings/rtl_OUString.cxx
+++ b/sal/qa/rtl_strings/rtl_OUString.cxx
@@ -733,7 +733,7 @@ extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_op_eq(
{"null and Ustr1", new OUString, new OUString(aUStr1)},
{"Ustr2 and Ustr1", new OUString(aUStr2),
new OUString(aUStr1)},
- {""" and Ustr1 from bit charactor buffer",
+ {""" and Ustr1 from bit character buffer",
new OUString(aUStr1),
new OUString( "",
0,