criu/test
Andrey Vagin 6eab073c07 zdtm: fix compile errors of zdtm_ct
When "make test" is executed, CFLAGS is exported from the root Makefile.
These flags define _GNU_SOURCE, so we don't need to define it in the
souce file.

In addition unistd.h isn't included, so a few functions are shown as undeclared.

make zdtm_ns
make[3]: Entering directory `/root/criu/test'
gcc  -O2 -Wall -Werror -DCONFIG_X86_64 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE    zdtm_ct.c   -o zdtm_ct
zdtm_ct.c:1:0: error: "_GNU_SOURCE" redefined [-Werror]
 #define _GNU_SOURCE
 ^
<command-line>:0:0: note: this is the location of the previous definition
zdtm_ct.c: In function ‘main’:
zdtm_ct.c:21:2: error: implicit declaration of function ‘fork’ [-Werror=implicit-function-declaration]
  pid = fork();
  ^
zdtm_ct.c:23:3: error: implicit declaration of function ‘setsid’ [-Werror=implicit-function-declaration]
   if (setsid() == -1) {
   ^
zdtm_ct.c:49:3: error: implicit declaration of function ‘execv’ [-Werror=implicit-function-declaration]
   execv(argv[1], argv + 1);
   ^
zdtm_ct.c:62:3: error: implicit declaration of function ‘getpid’ [-Werror=implicit-function-declaration]
   kill(getpid(), WTERMSIG(status));
   ^
cc1: all warnings being treated as errors

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Tested-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-08-26 12:52:39 +04:00
..
app-emu test/*Makefile: add/append PHONY targets 2014-01-11 09:12:35 +04:00
bers test: bers -- Add short help output 2014-08-13 15:50:54 +04:00
ext-links test/ext-links: fix path to the ip tool 2014-06-24 22:50:17 +04:00
fault-injection test: check, that parasite can rollback itself (v2) 2013-08-06 15:11:12 +04:00
jenkins jenkins/btrfs: exclude inotify_irmap 2014-07-08 19:18:39 +04:00
libcriu test: Test how criu_dump_iters from library works 2014-06-27 14:29:56 +04:00
mem-snap test/meme-snap: remove an nonexistent target 2014-07-02 12:13:11 +04:00
mounts test: add mounts/ext in the "other" list 2014-07-03 19:21:20 +04:00
rpc make: test: rpc: don't forget to delete rpc_pb2.pyc 2014-08-06 09:36:00 +04:00
security test: security 2014-08-06 10:20:30 +04:00
tcp test: add a target to execute non-zdtm tests 2014-06-24 22:50:43 +04:00
unix-callback test: add a target to execute non-zdtm tests 2014-06-24 22:50:43 +04:00
zdtm tests: add a test for --cgroup-root 2014-08-19 12:59:10 +04:00
.gitignore zdtm: add a small program to create a zdtm container (v2) 2014-08-14 18:28:38 +04:00
app-emu.sh test: add a script for executing all app-emu test cases 2012-11-22 19:08:29 +04:00
env.sh test: create env.sh for environment setting 2013-08-20 14:52:34 +04:00
functions.sh test/app-emu: wait while tasks are dying before starting restore 2012-11-22 19:08:14 +04:00
Makefile zdtm: fix compile errors of zdtm_ct 2014-08-26 12:52:39 +04:00
maps.py zdtm: check that a process has the same set of VMS-s after restore 2013-09-23 15:23:12 +04:00
post-dump.sh zdtm: the post-dump scripts returns zero, if action is not post-dump 2013-07-24 19:10:49 +04:00
zdtm.sh Revert "zdtm: Remove cgroup02 out of runlist" 2014-08-22 19:17:42 +04:00
zdtm_ct.c zdtm: fix compile errors of zdtm_ct 2014-08-26 12:52:39 +04:00