From cc7697baae812850b0b9262bc1b3cb303c6a2adf Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 17 Apr 2025 12:22:35 -0600 Subject: tests: Name coroutines foo_cr, not cr_foo This makes debugging failing tests easier because gdb-helpers/libcr.py assumes that anything starting with cr_* is internal to libcr. --- libcr/tests/test_matrix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcr/tests/test_matrix.c') diff --git a/libcr/tests/test_matrix.c b/libcr/tests/test_matrix.c index 1f23455..eaa4bdc 100644 --- a/libcr/tests/test_matrix.c +++ b/libcr/tests/test_matrix.c @@ -1,6 +1,6 @@ /* libcr/tests/test_matrix.c - Tests for libcr * - * Copyright (C) 2024 Luke T. Shumaker + * Copyright (C) 2024-2025 Luke T. Shumaker * SPDX-License-Identifier: AGPL-3.0-or-later */ @@ -8,14 +8,14 @@ int a = 1; -COROUTINE cr_init(void *) { +COROUTINE init_cr(void *) { cr_begin(); a = 2; cr_end(); } int main() { - coroutine_add("init", cr_init, NULL); + coroutine_add("init", init_cr, NULL); coroutine_main(); if (a != 2) return 1; -- cgit v1.2.3-2-g168b