diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-13 21:09:25 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-13 21:09:25 +0000 |
commit | d1ded8b515e96229a707518fe8349058f2daf9e3 (patch) | |
tree | bef0a4ef64e1e55a1a03ae2bb37d5d3d44c416a7 /tests/Priority_Task_Test.cpp | |
parent | ec830b978eba6852e9c939cbfc29ed490a857968 (diff) | |
download | ATCD-d1ded8b515e96229a707518fe8349058f2daf9e3.tar.gz |
bail out on HPUX 11 if not running as root
Diffstat (limited to 'tests/Priority_Task_Test.cpp')
-rw-r--r-- | tests/Priority_Task_Test.cpp | 8 |
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) { |