summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spthreadq01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spthreadq01/init.c')
-rw-r--r--testsuites/sptests/spthreadq01/init.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/testsuites/sptests/spthreadq01/init.c b/testsuites/sptests/spthreadq01/init.c
index 8f02e4d650..2b994e5d68 100644
--- a/testsuites/sptests/spthreadq01/init.c
+++ b/testsuites/sptests/spthreadq01/init.c
@@ -40,7 +40,6 @@ typedef struct {
rtems_id mq;
rtems_id br;
#if defined(RTEMS_POSIX_API)
- sem_t psem;
pthread_mutex_t pmtx;
pthread_cond_t pcv;
pthread_rwlock_t prw;
@@ -120,12 +119,6 @@ static void posix_worker(test_context *ctx)
int eno;
char buf[1];
- wake_up_master(ctx);
- rtems_test_assert(get_wait_id(ctx) == ctx->psem);
-
- rv = sem_post(&ctx->psem);
- rtems_test_assert(rv == 0);
-
eno = pthread_mutex_lock(&ctx->pmtx);
rtems_test_assert(eno == 0);
@@ -217,13 +210,9 @@ static void test_classic_init(test_context *ctx)
static void test_posix_init(test_context *ctx)
{
#if defined(RTEMS_POSIX_API)
- int rv;
int eno;
struct mq_attr attr;
- rv = sem_init(&ctx->psem, 0, 0);
- rtems_test_assert(rv == 0);
-
eno = pthread_mutex_init(&ctx->pmtx, NULL);
rtems_test_assert(eno == 0);
@@ -306,7 +295,6 @@ static void test_classic_obj(test_context *ctx)
static void test_posix_obj(test_context *ctx)
{
#if defined(RTEMS_POSIX_API)
- int rv;
int eno;
char buf[1];
unsigned prio;
@@ -314,11 +302,6 @@ static void test_posix_obj(test_context *ctx)
wait_for_worker(ctx);
- rv = sem_wait(&ctx->psem);
- rtems_test_assert(rv == 0);
-
- wait_for_worker(ctx);
-
eno = pthread_mutex_lock(&ctx->pmtx);
rtems_test_assert(eno == 0);
@@ -377,7 +360,6 @@ static rtems_task Init(
#define CONFIGURE_MAXIMUM_BARRIERS 1
#if defined(RTEMS_POSIX_API)
- #define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 1
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 1
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 1
#define CONFIGURE_MAXIMUM_POSIX_RWLOCKS 1