From 18c902cc9d161311b4cc6118edc7d1b6599b8575 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Mon, 28 Oct 2019 09:07:28 +0800 Subject: [PATCH] fix tests --- tests/mutex_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mutex_test.cc b/tests/mutex_test.cc index 77c91f8a4..c4dee0877 100644 --- a/tests/mutex_test.cc +++ b/tests/mutex_test.cc @@ -12,8 +12,8 @@ static void* thread_entry(void* args) { return NULL; } -TEST(Semaphore, basic) { - tk_mutex_t* mutex = tk_mutex_create(0, "hello"); +TEST(Mutex, basic) { + tk_mutex_t* mutex = tk_mutex_create(); tk_thread_t* thread = tk_thread_create(thread_entry, mutex); tk_thread_start(thread);