From fdbd6abee20e408de21e90ca77a24cd50a6ea073 Mon Sep 17 00:00:00 2001 From: Christopher Albert Date: Thu, 25 Jun 2026 08:22:51 +0200 Subject: [PATCH] tests : synchronize contexts at end of test-thread-safety (#24935) Assisted-by: Claude --- tests/test-thread-safety.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-thread-safety.cpp b/tests/test-thread-safety.cpp index acda4aa81e..d0b5946e2c 100644 --- a/tests/test-thread-safety.cpp +++ b/tests/test-thread-safety.cpp @@ -146,6 +146,8 @@ int main(int argc, char ** argv) { } LOG_INF("Model %d/%d, Context %d/%d: %s\n\n", m + 1, num_models, c + 1, num_contexts, result.c_str()); + + llama_synchronize(ctx.get()); }); } }