• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ivmai / bdwgc / 1205
77%

Build:
DEFAULT BRANCH: master
Ran 14 Jan 2022 09:34PM UTC
Jobs 1
Files 58
Run time 15s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jan 2022 09:23PM UTC coverage: 73.413% (-0.08%) from 73.492%
1205

push

travis-ci-com

ivmai
Workaround crash in FreeBSD rand() by avoiding its concurrent usage

Issue #414 (bdwgc).

The standard specifies rand() as not a thread-safe API function.  Thus,
the concurrent usage of libc rand() should be avoided.

Redefine the standard rand() in disclaim_[weakmap_]test with a trivial
(yet sufficient for the test purpose) implementation to avoid crashes
inside rand() on some targets (e.g. FreeBSD 13.0).

* tests/disclaim_test.c [LINT2] (GC_API_PRIV): Do not define.
* tests/disclaim_weakmap_test.c [LINT2] (GC_API_PRIV): Likewise.
* tests/disclaim_test.c [LINT2] (GC_random): Do not declare.
* tests/disclaim_weakmap_test.c [LINT2] (GC_random): Likewise.
* tests/disclaim_test.c [GC_PTHREADS || LINT2] (NOT_GCBUILD): Define.
* tests/disclaim_weakmap_test.c [GC_PTHREADS || LINT2] (NOT_GCBUILD):
Likewise.
* tests/disclaim_test.c [GC_PTHREADS || LINT2]: Include gc_priv.h.
* tests/disclaim_test.c [GC_PTHREADS || LINT2] (GC_rand): New static
function.
* tests/disclaim_weakmap_test.c [GC_PTHREADS || LINT2] (GC_rand):
Likewise.
* tests/disclaim_test.c [GC_PTHREADS || LINT2] (rand): Define to
GC_rand() (instead of (int)GC_random()); add comment.
* tests/disclaim_weakmap_test.c [GC_PTHREADS || LINT2] (rand):
Likewise.
* tests/disclaim_weakmap_test.c [GC_PTHREADS || LINT2]: Include
gc_priv.h before gc/gc_mark.h; add comment.

6 of 6 new or added lines in 2 files covered. (100.0%)

7207 of 9817 relevant lines covered (73.41%)

10427036.94 hits per line

Jobs
ID Job ID Ran Files Coverage
5 1205.5 (CONF_OPTIONS="--enable-gcov --enable-single-obj-compilation --enable-cplusplus --disable-shared --enable-gc-assertions" CFLAGS_EXTRA="-D USE_CUSTOM_SPECIFIC" CC_FOR_CHECK=g++ MAKEFILE_TARGETS="all" MAKEFILE_TARGETS_CHECK="check" NO_CLONE_LIBATOMIC_OPS=true REPORT_COVERAGE=true TESTS_CUSTOM_RUN=true) 14 Jan 2022 09:34PM UTC 0
73.41
Travis Job 1205.5
Source Files on build 1205
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1205
  • 457b0241 on github
  • Prev Build on master (#1204)
  • Next Build on master (#1206)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc