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, 7 insertions, 1 deletions
diff --git a/tests/Priority_Task_Test.cpp b/tests/Priority_Task_Test.cpp
index ff0b81a8d9d..cd7d1c1374b 100644
--- a/tests/Priority_Task_Test.cpp
+++ b/tests/Priority_Task_Test.cpp
@@ -147,11 +147,17 @@ Priority_Task::svc (void)
int
main (int argc, ASYS_TCHAR *argv[])
{
+#if (HPUX_VERS >= 1100 )
+ if (::geteuid () != 0)
+ ACE_ERROR_RETURN ((LM_DEBUG,
+ "You must be root to run this test on HPUX 11.0\n" ),
+ 0);
+#endif // if HPUX 11.0 or greater
ACE_START_TEST (ASYS_TEXT ("Priority_Task_Test"));
if (argc <= 1)
// Disable LM_DEBUG messages.
- ACE_Log_Msg::instance ()->priority_mask
+ ACE_Log_Msg::instance ()->priority_mask
(ACE_Log_Msg::instance ()->priority_mask () & ~ LM_DEBUG);
else if (argc == 2)
{