Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
61f50a9c
Commit
61f50a9c
authored
Jan 27, 2012
by
Andrey Vagin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm: remove warnings
parent
003b6e90
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
11 deletions
+10
-11
Makefile
test/zdtm/lib/Makefile
+1
-1
msg.c
test/zdtm/lib/msg.c
+1
-2
test.c
test/zdtm/lib/test.c
+3
-1
Makefile
test/zdtm/live/static/Makefile
+1
-1
socket_listen.c
test/zdtm/live/static/socket_listen.c
+1
-1
Makefile
test/zdtm/live/streaming/Makefile
+1
-1
netlink00.c
test/zdtm/live/streaming/netlink00.c
+0
-2
Makefile
test/zdtm/live/transition/Makefile
+1
-1
epoll.c
test/zdtm/live/transition/epoll.c
+1
-1
No files found.
test/zdtm/lib/Makefile
View file @
61f50a9c
CFLAGS
=
-g
-O2
-Wall
CFLAGS
=
-g
-O2
-Wall
-Werror
LIB
=
libzdtmtst.a
...
...
test/zdtm/lib/msg.c
View file @
61f50a9c
...
...
@@ -27,7 +27,7 @@ void test_msg(const char *format, ...)
va_end
(
arg
);
if
(
len
>=
msg_buf
.
left
)
{
/* indicate message buffer overflow */
const
static
char
overflow_mark
[]
=
"
\n
.@.
\n
"
;
const
char
overflow_mark
[]
=
"
\n
.@.
\n
"
;
msg_buf
.
left
=
0
;
msg_buf
.
ptr
=
msg_buf
.
buffer
+
sizeof
(
msg_buf
.
buffer
);
strcpy
(
msg_buf
.
ptr
-
sizeof
(
overflow_mark
),
overflow_mark
);
...
...
@@ -56,7 +56,6 @@ void dump_msg(const char *fname)
return
;
/* ignore errors as there's no way to report them */
write
(
fd
,
msg_buf
.
buffer
,
msg_buf
.
ptr
-
msg_buf
.
buffer
);
out:
close
(
fd
);
}
}
test/zdtm/lib/test.c
View file @
61f50a9c
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
...
...
@@ -8,6 +9,7 @@
#include <sys/wait.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sched.h>
#include "zdtmtst.h"
...
...
@@ -158,7 +160,7 @@ void test_init(int argc, char **argv)
#define STACK_SIZE (8 * 4096)
struct
zdtm_clone_arg
{
int
pidf
;
FILE
*
pidf
;
void
(
*
fn
)(
void
);
};
...
...
test/zdtm/live/static/Makefile
View file @
61f50a9c
LIBDIR
=
../../lib
LIB
=
$(LIBDIR)
/libzdtmtst.a
override
CPPFLAGS
+=
-I
$(LIBDIR)
CFLAGS
=
-g
-O2
-Wall
CFLAGS
=
-g
-O2
-Wall
-Werror
TST_NOFILE
=
\
busyloop00
\
...
...
test/zdtm/live/static/socket_listen.c
View file @
61f50a9c
...
...
@@ -33,7 +33,7 @@ int main(int argc, char **argv)
int
fd
,
fd_s
;
int
status
;
pid_t
pid
;
int
re
t
,
re
s
;
int
res
;
uint32_t
crc
;
test_init
(
argc
,
argv
);
...
...
test/zdtm/live/streaming/Makefile
View file @
61f50a9c
LIBDIR
=
../../lib
LIB
=
$(LIBDIR)
/libzdtmtst.a
override
CPPFLAGS
+=
-I
$(LIBDIR)
CFLAGS
=
-g
-O2
-Wall
CFLAGS
=
-g
-O2
-Wall
-Werror
TST_NOFILE
=
\
pipe_loop00
\
...
...
test/zdtm/live/streaming/netlink00.c
View file @
61f50a9c
...
...
@@ -68,7 +68,6 @@ cmd_t cmd[CMD_NUM]={form_request_add, form_request_del};
int
main
(
int
argc
,
char
*
argv
[])
{
int
ret
=
0
;
int
i
;
test_init
(
argc
,
argv
);
...
...
@@ -85,7 +84,6 @@ int main(int argc, char *argv[])
la
.
nl_pid
=
getpid
();
if
(
bind
(
fd
,
(
struct
sockaddr
*
)
&
la
,
sizeof
(
la
))){
err
(
"bind failed: %m "
);
ret
=-
1
;
goto
out
;
}
//Preperation:
...
...
test/zdtm/live/transition/Makefile
View file @
61f50a9c
LIBDIR
=
../../lib
LIB
=
$(LIBDIR)
/libzdtmtst.a
override
CPPFLAGS
+=
-I
$(LIBDIR)
CFLAGS
=
-g
-O2
-Wall
CFLAGS
=
-g
-O2
-Wall
-Werror
TST_NOFILE
=
\
file_read
\
...
...
test/zdtm/live/transition/epoll.c
View file @
61f50a9c
...
...
@@ -59,7 +59,7 @@ static void run_child(int num)
int
fd
=
fds
[
num
][
1
];
uint32_t
crc
=
~
0
;
size_t
buf_size
=
512
;
char
buf
[
buf_size
];
uint8_t
buf
[
buf_size
];
struct
timeval
tv
;
struct
timespec
ts
;
int
rv
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment