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
bbc38f3d
Commit
bbc38f3d
authored
Dec 19, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm: Simple test for AIO ring
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
95945950
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
zdtm.sh
test/zdtm.sh
+2
-0
Makefile
test/zdtm/live/static/Makefile
+2
-0
aio00.c
test/zdtm/live/static/aio00.c
+36
-0
No files found.
test/zdtm.sh
View file @
bbc38f3d
...
@@ -20,6 +20,7 @@ static/cwd00
...
@@ -20,6 +20,7 @@ static/cwd00
static/cwd01
static/cwd01
static/cwd02
static/cwd02
static/env00
static/env00
static/aio00
static/maps00
static/maps00
static/maps01
static/maps01
static/maps02
static/maps02
...
@@ -190,6 +191,7 @@ static/remap_dead_pid
...
@@ -190,6 +191,7 @@ static/remap_dead_pid
TEST_CR_KERNEL
=
"
TEST_CR_KERNEL
=
"
ns/static/tun
ns/static/tun
static/timerfd
static/timerfd
static/aio00
"
"
cat
/proc/self/fdinfo/1 |
grep
-q
mnt_id
cat
/proc/self/fdinfo/1 |
grep
-q
mnt_id
...
...
test/zdtm/live/static/Makefile
View file @
bbc38f3d
...
@@ -116,6 +116,7 @@ TST_NOFILE = \
...
@@ -116,6 +116,7 @@ TST_NOFILE = \
dumpable01
\
dumpable01
\
dumpable02
\
dumpable02
\
remap_dead_pid
\
remap_dead_pid
\
aio00
\
fd
\
fd
\
# jobctl00
\
# jobctl00
\
...
@@ -272,6 +273,7 @@ wait_stop:
...
@@ -272,6 +273,7 @@ wait_stop:
$(TST)
:
$(LIB)
$(TST)
:
$(LIB)
aio00
:
override LDFLAGS += -laio
futex.o
:
override CFLAGS += -pthread
futex.o
:
override CFLAGS += -pthread
futex
:
override LDFLAGS += -pthread
futex
:
override LDFLAGS += -pthread
futex-rl.o
:
override CFLAGS += -pthread
futex-rl.o
:
override CFLAGS += -pthread
...
...
test/zdtm/live/static/aio00.c
0 → 100644
View file @
bbc38f3d
#include <libaio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "zdtmtst.h"
const
char
*
test_doc
=
"Check that plain io_setup works"
;
const
char
*
test_author
=
"Pavel Emelianov <xemul@parallels.com>"
;
int
main
(
int
argc
,
char
**
argv
)
{
int
ret
;
io_context_t
ctx
=
0
;
test_init
(
argc
,
argv
);
if
(
io_setup
(
1
,
&
ctx
)
<
0
)
{
err
(
"Can't setup io ctx"
);
return
1
;
}
test_daemon
();
test_waitsig
();
ret
=
io_getevents
(
ctx
,
0
,
1
,
NULL
,
NULL
);
if
(
ret
!=
0
)
{
if
(
ret
<
0
)
fail
(
"IO ctx lost (%d)"
,
ret
);
else
fail
(
"IO ctx screwed up (%d)"
,
ret
);
}
else
pass
();
return
0
;
}
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