aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-09-26 10:01:41 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-09-26 10:01:41 -0400
commit1a95c340a77020bdb897ecb67974fa5c578a611a (patch)
tree11424b4d552483bebf79c7a9b373688ad3f61a25
parentc645252886ce1ff63df9ebb252acca81ffa7b8bf (diff)
downloadstasis-1a95c340a77020bdb897ecb67974fa5c578a611a.tar.gz
Remove more references to the semaphore "gate"
-rw-r--r--tests/test_multiprocessing.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/test_multiprocessing.c b/tests/test_multiprocessing.c
index 5b3d9d1..0b6c6ea 100644
--- a/tests/test_multiprocessing.c
+++ b/tests/test_multiprocessing.c
@@ -30,7 +30,6 @@ void test_mp_pool_init() {
data_bad += task->time_data.t_stop.tv_sec == 0 ? 0 : 1;
data_bad += (int) strlen(task->ident) == 0 ? 0 : 1;
data_bad += (int) strlen(task->parent_script) == 0 ? 0 : 1;
- data_bad += task->gate == NULL ? 0 : 1;
if (data_bad) {
SYSERROR("%s.task[%zu] has garbage values!", pool->ident, i);
SYSERROR(" ident: %s", task->ident);
@@ -42,7 +41,6 @@ void test_mp_pool_init() {
SYSERROR(" t_start.tv_sec: %ld", task->time_data.t_start.tv_sec);
SYSERROR(" t_stop.tv_nsec: %ld", task->time_data.t_stop.tv_nsec);
SYSERROR(" t_stop.tv_sec: %ld", task->time_data.t_stop.tv_sec);
- SYSERROR(" gate: %s", task->gate == NULL ? "UNINITIALIZED (OK)" : "INITIALIZED (BAD)");
data_bad_total++;
}
}
@@ -64,7 +62,6 @@ void test_mp_task() {
STASIS_ASSERT(task->status == -1, "Status should be -1 (not started yet)");
STASIS_ASSERT(strcmp(task->ident, task_name) == 0, "Wrong task identity");
STASIS_ASSERT(strstr(task->log_file, pool->log_root) != NULL, "Log file path must be in log_root");
- STASIS_ASSERT(task->gate != NULL, "Semaphore should be initialized");
}
}
}