summaryrefslogtreecommitdiff
path: root/ACE/tests
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2009-05-22 16:11:04 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2009-05-22 16:11:04 +0000
commit5f695a105a7b0fcb77673551a19ad8aca3a181f8 (patch)
tree14d6fe846bbb9b60c4b22ce2c18de87323b1ede2 /ACE/tests
parentb01a497051e6da2e28729f4f199e9999562b34dc (diff)
downloadATCD-5f695a105a7b0fcb77673551a19ad8aca3a181f8.tar.gz
Fri May 22 16:10:05 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* tests/ACE_Init_Test.cpp: Improved message * tests/Dirent_Test.cpp: Initialise pointer to 0 * tests/SOCK_Connector_Test.cpp: Print errno to get some more feedback why this fails on WinCE
Diffstat (limited to 'ACE/tests')
-rw-r--r--ACE/tests/ACE_Init_Test.cpp2
-rw-r--r--ACE/tests/Dirent_Test.cpp2
-rw-r--r--ACE/tests/SOCK_Connector_Test.cpp7
3 files changed, 7 insertions, 4 deletions
diff --git a/ACE/tests/ACE_Init_Test.cpp b/ACE/tests/ACE_Init_Test.cpp
index 89373bc32ba..355b70b5349 100644
--- a/ACE/tests/ACE_Init_Test.cpp
+++ b/ACE/tests/ACE_Init_Test.cpp
@@ -25,7 +25,7 @@ run_main (int, ACE_TCHAR *[])
{
ACE_START_TEST (ACE_TEXT ("ACE_Init_Test"));
ACE_ERROR ((LM_INFO,
- ACE_TEXT ("This is not a Win32 platform, test skipped\n")));
+ ACE_TEXT ("This is not a Win32 platform with MFC support, test skipped\n")));
ACE_END_TEST;
return 0;
}
diff --git a/ACE/tests/Dirent_Test.cpp b/ACE/tests/Dirent_Test.cpp
index 5804d14d77d..4e6d871f34f 100644
--- a/ACE/tests/Dirent_Test.cpp
+++ b/ACE/tests/Dirent_Test.cpp
@@ -180,7 +180,7 @@ dirent_test (void)
ACE_ERROR_RETURN
((LM_ERROR, ACE_TEXT ("open of dir %s failed\n"), TestDir.c_str()), -1);
- for (ACE_DIRENT *directory;
+ for (ACE_DIRENT *directory = 0;
(directory = dir.read ()) != 0;
entrycount++)
{
diff --git a/ACE/tests/SOCK_Connector_Test.cpp b/ACE/tests/SOCK_Connector_Test.cpp
index d1142582bad..a0fc7c1fbe3 100644
--- a/ACE/tests/SOCK_Connector_Test.cpp
+++ b/ACE/tests/SOCK_Connector_Test.cpp
@@ -269,7 +269,9 @@ succeed_nonblocking (void)
else
{
if (sock.get_handle () != ACE_INVALID_HANDLE)
- status = con.complete (sock);
+ {
+ status = con.complete (sock);
+ }
if (status == -1)
{
@@ -284,7 +286,8 @@ succeed_nonblocking (void)
else
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT("%p\n"),
+ ACE_TEXT("Errno <%d>: %p\n"),
+ ACE_ERRNO_GET,
ACE_TEXT("connect should succeed, but")));
}
}