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

0x7f454c46 / criu
63%
master: 66%

Build:
Build:
LAST BUILD BRANCH: wip/vdso-kdat
DEFAULT BRANCH: master
Repo Added 01 Jun 2016 05:33PM UTC
Files 2
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

LAST BUILD ON BRANCH zdtm-gnu-source
branch: zdtm-gnu-source
CHANGE BRANCH
x
Reset
  • zdtm-gnu-source
  • 0x-fix
  • 32-vdso
  • HEAD
  • PAGE_SIZE-v3
  • PAGE_SIZE-v4
  • arm-fixes
  • arm32
  • arm64
  • bind-nested
  • bind-upwards
  • cgroup-fix
  • clang
  • clang-fixes
  • common-config
  • compat-3
  • compat-4
  • compat-config
  • compat-vz
  • compat-vz-fixes
  • compel-arch-5
  • compel-tool-1
  • compel-tool-1-vers
  • coverity
  • cr-exec
  • criu-dev
  • cyrill-32
  • cyrill-32-2
  • cyrill-compat-style
  • dsafonov
  • headers
  • headers-soccr
  • helper-sigchild
  • ia32
  • ia32/R_X86_64_32
  • ia32/feature-test
  • ia32/make-debug-fix
  • ia32/mmap-bug-check
  • ia32/robust_list
  • ia32/unmap-mv
  • linux-next
  • make
  • make-fix
  • make-nmk
  • makeflags
  • master
  • master-top-dir
  • misc
  • mount-fix
  • mxcsr-bug
  • new-vdso
  • page-xfer-msg
  • parasite-args-fix
  • remove-CONFIG_VDSO
  • rm-unmap
  • signals-arm-fix
  • soccr-headers
  • sub-ns
  • sysv-shmem
  • test-make
  • test-printf
  • tmp
  • toy-poison
  • travis
  • travis-gcov
  • tty-fix
  • tty-fix2
  • tun-kdat
  • v3.0-fixes
  • wip/PAGE_SIZE
  • wip/bind-upwards
  • wip/cgroup-fix
  • wip/helper-sigchild
  • wip/kerndat
  • wip/new-vdso
  • wip/vdso-kdat
  • x86-64-relocs
  • x86-tls-fix
  • zdtm-ifpriomap

pending completion
810

push

travis-ci

0x7f454c46
zdtm: rely on -D_GNU_SOURCE passed from Makefiles

After the commit
  02c763939c10 ("test/zdtm: unify common code")

CFLAGS with -D_GNU_SOURCE defined in the top Makefile
are being passed to tests Makefiles.
As _GNU_SOURCE is also defined by tests, that resulted in
zdtm tests build failures:

  make[2]: Entering directory `/home/criu/test/zdtm/lib'
   CC        test.o
  test.c:1:0: error: "_GNU_SOURCE" redefined [-Werror]
   #define _GNU_SOURCE
   ^
  <command-line>:0:0: note: this is the location of the previous definition
  cc1: all warnings being treated as errors
  make[2]: *** [test.o] Error 1

However, we didn't catch this in time by Travis-CI, as zdtm.py doesn't
do `make zdtm`, rather it does `make -C test/zdtm/{lib,static,transition}`.
By calling middle makefile this way, it doesn't have _GNU_SOURCE in
CFLAGS from top-Makefile.

I think the right thing to do here - is following CRIU's way:
rely on definition of _GNU_SOURCE by Makefiles.

This patch is almost fully generated with
  find test/zdtm/ -name '*.c' -type f					\
     -exec sed -i '/define _GNU_SOURCE/{n;/^$/d;}' '{}' \;		\
     -exec sed -i '/define _GNU_SOURCE/d' '{}' \;

With an exception for adding -D_GNU_SOURCE in tests Makefiles for
keeping the same behaviour for zdtm.py.
Also changed utsname.c to use utsname::domainname, rather private
utsname::__domainname, as now it's uncovered (from sys/utsname.h):
> struct utsname
>  {
...
> # ifdef __USE_GNU
>     char domainname[_UTSNAME_DOMAIN_LENGTH];
> # else
>     char __domainname[_UTSNAME_DOMAIN_LENGTH];
> # endif

Reported-by: Adrian Reber <areber@redhat.com>
Cc: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>

18839 of 29741 relevant lines covered (63.34%)

54485.65 hits per line

Relevant lines Covered
Build:
Build:
29741 RELEVANT LINES 18839 COVERED LINES
54485.65 HITS PER LINE
Source Files on zdtm-gnu-source
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
810 zdtm-gnu-source zdtm: rely on -D_GNU_SOURCE passed from Makefiles After the commit 02c763939c10 ("test/zdtm: unify common code") CFLAGS with -D_GNU_SOURCE defined in the top Makefile are being passed to tests Makefiles. As _GNU_SOURCE is also defined by tests... push 05 Apr 2017 11:29AM UTC 0x7f454c46 travis-ci pending completion  
809 zdtm-gnu-source fixup: zdtm.py Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> push 04 Apr 2017 12:28PM UTC 0x7f454c46 travis-ci pending completion  
See All Builds (352)
  • Repo on GitHub
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

© 2025 Coveralls, Inc