We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4853d94 commit c40d2dcCopy full SHA for c40d2dc
tests/threads/basic.c
@@ -54,6 +54,12 @@ static void *return_normally(void *param)
54
{
55
return param;
56
}
57
+
58
+static void *exit_abruptly(void *param)
59
+{
60
+ git_thread_exit(param);
61
+ return NULL;
62
+}
63
#endif
64
65
void test_threads_basic__exit(void)
@@ -70,7 +76,7 @@ void test_threads_basic__exit(void)
70
76
cl_assert_equal_sz(424242, (size_t)result);
71
77
72
78
/* Ensure that the return value of `git_thread_exit` is returned. */
73
- cl_git_pass(git_thread_create(&thread, return_normally, (void *)232323));
79
+ cl_git_pass(git_thread_create(&thread, exit_abruptly, (void *)232323));
74
80
cl_git_pass(git_thread_join(&thread, &result));
75
81
cl_assert_equal_sz(232323, (size_t)result);
82
0 commit comments