summaryrefslogtreecommitdiff
path: root/tests/Future_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Future_Test.cpp')
-rw-r--r--tests/Future_Test.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/Future_Test.cpp b/tests/Future_Test.cpp
index 2a3c8b664bb..92e90561a02 100644
--- a/tests/Future_Test.cpp
+++ b/tests/Future_Test.cpp
@@ -424,26 +424,22 @@ run_main (int, ACE_TCHAR *[])
ACE_NEW_RETURN (andres,
Prime_Scheduler (ACE_TEXT ("andres")),
-1);
- int result = andres->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (andres->open () != -1);
ACE_NEW_RETURN (peter,
Prime_Scheduler (ACE_TEXT ("peter")),
-1);
- result = peter->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (peter->open () != -1);
ACE_NEW_RETURN (helmut,
Prime_Scheduler (ACE_TEXT ("helmut")),
-1);
- result = helmut->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (helmut->open () != -1);
// Matias passes all asynchronous method calls on to Andres...
ACE_NEW_RETURN (matias,
Prime_Scheduler (ACE_TEXT ("matias"),
andres),
-1);
- result = matias->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (matias->open () != -1);
for (int i = 0; i < n_loops; i++)
{