summaryrefslogtreecommitdiff
path: root/tests/Priority_Task_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Priority_Task_Test.cpp')
-rw-r--r--tests/Priority_Task_Test.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/Priority_Task_Test.cpp b/tests/Priority_Task_Test.cpp
index bcc52856f43..1524af0c497 100644
--- a/tests/Priority_Task_Test.cpp
+++ b/tests/Priority_Task_Test.cpp
@@ -17,7 +17,6 @@
//
// ============================================================================
-
#include "ace/Service_Config.h"
#include "ace/Task.h"
#include "test_config.h"
@@ -64,7 +63,12 @@ Priority_Task::svc (void)
ACE_hthread_t thr_handle;
ACE_Thread::self (thr_handle);
int prio;
- ACE_Thread::getprio (thr_handle, prio);
+
+ if (ACE_Thread::getprio (thr_handle, prio) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "getprio failed"), -1);
+
+ ACE_DEBUG ((LM_DEBUG, "(%t) prio = %d, priority_ = %d\n",
+ prio, this->priority_));
ACE_ASSERT (this->priority_ == prio);
return 0;
}