From 3565a6124d2805edfe5ba4055a35313bfdc99043 Mon Sep 17 00:00:00 2001 From: vitawrap <thevitawrap@gmail.com> Date: Sun, 9 Apr 2023 02:39:06 +0200 Subject: [PATCH] tests: allouer task_ids dynamiquement --- src/test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test.c b/src/test.c index 221f061..6df9454 100644 --- a/src/test.c +++ b/src/test.c @@ -206,10 +206,10 @@ void test_instance_remove_task() { void test_schedule_creation_view() { Instance I = new_list(view_task, delete_task); - struct task_t* task1 = new_task("T1", 5, 3); - struct task_t* task2 = new_task("T2", 3, 0); - struct task_t* task3 = new_task("T3", 2, 2); - struct task_t* task4 = new_task("T4", 1, 0); + struct task_t* task1 = new_task(strdup("T1"), 5, 3); + struct task_t* task2 = new_task(strdup("T2"), 3, 0); + struct task_t* task3 = new_task(strdup("T3"), 2, 2); + struct task_t* task4 = new_task(strdup("T4"), 1, 0); list_insert_last(I, task1); list_insert_last(I, task2); -- GitLab