projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6cede
)
Fix multi-threaded gctest for the case of NTHREADS is set to zero
author
Ivan Maidanski
<ivmai@mail.ru>
Wed, 13 Jun 2018 22:11:49 +0000
(
01:11
+0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Wed, 13 Jun 2018 22:11:49 +0000
(
01:11
+0300)
(fix of commit
347c1f0d0
)
* tests/test.c [THREADS] (run_one_test): If !GC_thread_is_registered()
then FAIL only if GC_is_init_called().
tests/test.c
patch
|
blob
|
history
diff --git
a/tests/test.c
b/tests/test.c
index
5270590
..
435af8c
100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-1298,7
+1298,7
@@
void run_one_test(void)
GC_FREE(0);
# ifdef THREADS
- if (!GC_thread_is_registered()) {
+ if (!GC_thread_is_registered()
&& GC_is_init_called()
) {
GC_printf("Current thread is not registered with GC\n");
FAIL;
}