summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxmsgq01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxmsgq01/init.c')
-rw-r--r--testsuites/psxtests/psxmsgq01/init.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c
index 8922173018..f96494f588 100644
--- a/testsuites/psxtests/psxmsgq01/init.c
+++ b/testsuites/psxtests/psxmsgq01/init.c
@@ -16,6 +16,7 @@
#include <time.h>
#include <tmacros.h>
#include <signal.h> /* signal facilities */
+#include "test_support.h"
typedef struct {
char msg[ 50 ];
@@ -100,25 +101,15 @@ void Validate_attributes(
fatal_int_service_status((int)attr.mq_flags, oflag, "flag attribute" );
}
-char Queue_Name[PATH_MAX + 2];
#define Get_Queue_Name( i ) Test_q[i].name
-
char *Build_Queue_Name( int i ) {
- sprintf(Queue_Name,"mq%d", i+1 );
- return Queue_Name;
-}
-char *Get_Too_Long_Name()
-{
- int i;
+ static char Queue_Name[PATH_MAX + 2];
- for ( i=0; i< PATH_MAX+1; i++ )
- Queue_Name[i] = 'N';
- Queue_Name[i] = '\0';
+ sprintf(Queue_Name,"mq%d", i+1 );
return Queue_Name;
}
-
void open_test_queues()
{
struct mq_attr attr;