summaryrefslogtreecommitdiff
path: root/tests/Thread_Mutex_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-11 03:52:56 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-11 03:52:56 +0000
commit70a297b35d21dda90d81870b0301ad414b5e3d2d (patch)
tree33bf2c4dee8feb92c635bb94c0f2e9f57e03b9f2 /tests/Thread_Mutex_Test.cpp
parent9f81f66189dc21eda2b531f64370f01d07f5e4ff (diff)
downloadATCD-70a297b35d21dda90d81870b0301ad414b5e3d2d.tar.gz
(test): don't compile this function if ACE_HAS_THREADS is not defined
Diffstat (limited to 'tests/Thread_Mutex_Test.cpp')
-rw-r--r--tests/Thread_Mutex_Test.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/Thread_Mutex_Test.cpp b/tests/Thread_Mutex_Test.cpp
index f55b4d8495d..cc79b52080e 100644
--- a/tests/Thread_Mutex_Test.cpp
+++ b/tests/Thread_Mutex_Test.cpp
@@ -4,7 +4,7 @@
//
// = LIBRARY
// tests
-//
+//
// = FILENAME
// Thread_Mutex_Test.cpp
//
@@ -15,12 +15,13 @@
//
// = AUTHOR
// Prashant Jain and Doug Schmidt
-//
+//
// ============================================================================
#include "ace/Thread_Manager.h"
#include "test_config.h"
+#if defined (ACE_HAS_THREADS)
static void *
test (void *args)
{
@@ -44,6 +45,7 @@ test (void *args)
return 0;
}
+#endif /* ACE_HAS_THREADS */
static void
spawn (void)
@@ -61,7 +63,7 @@ spawn (void)
ACE_Thread_Manager::instance ()->wait ();
#else
- ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n%"));
+ ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
#endif /* ACE_HAS_THREADS */
}
@@ -75,4 +77,3 @@ main (int, char *[])
ACE_END_TEST;
return 0;
}
-