Test results for the
mtdev
-
1.1.2
library on
x86
Summary
Total tests
24
Passed / Failed tests
18 /
6
Verdict
Test Failed
Problem Summary
Received signal SEGV
6
Failed Tests (6)
[+]
Received signal SEGV
(6 problems)
mtdev-plumbing.h
,
libmtdev.so.1.0.0
[+]
mtdev_empty
(
struct mtdev*
dev
)
:
int
received signal SEGV
1
2
3
4
5
6
7
#include <mtdev-plumbing.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
struct
mtdev*
dev
= mtdev_new(
)
;
mtdev_empty
(
dev
);
//target call
return
0
;
}
[+]
mtdev_fetch_event
(
struct mtdev*
dev
,
int
fd
,
struct input_event*
ev
)
:
int
received signal SEGV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <sys/stat.h>
#include <fcntl.h>
#include <mtdev-plumbing.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
struct
mtdev*
dev
= mtdev_new(
)
;
int
fd
= open(
"testdata/sample.txt"
, O_RDWR);
struct
input_event
ev
= {
.time = (
struct
timeval) {.tv_sec =
1L
, .tv_usec =
2L
},
.type =
0
,
.code =
3
,
.value =
4
};
mtdev_fetch_event
(
dev
,
fd
, &
ev
);
//target call
return
0
;
}
[+]
mtdev_get_event
(
struct mtdev*
dev
,
struct input_event*
ev
)
:
void
received signal SEGV
1
2
3
4
5
6
7
8
9
10
11
12
#include <mtdev-plumbing.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
struct
mtdev*
dev
= mtdev_new(
)
;
struct
input_event
ev
= {
.time = (
struct
timeval) {.tv_sec =
1L
, .tv_usec =
2L
},
.type =
0
,
.code =
3
,
.value =
4
};
mtdev_get_event
(
dev
, &
ev
);
//target call
return
0
;
}
[+]
mtdev_put_event
(
struct mtdev*
dev
,
struct input_event const*
ev
)
:
void
received signal SEGV
1
2
3
4
5
6
7
8
9
10
11
12
#include <mtdev-plumbing.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
struct
mtdev*
dev
= mtdev_new(
)
;
struct
input_event
ev
= {
.time = (
struct
timeval) {.tv_sec =
1L
, .tv_usec =
2L
},
.type =
0
,
.code =
3
,
.value =
4
};
mtdev_put_event
(
dev
, &
ev
);
//target call
return
0
;
}
mtdev.h
,
libmtdev.so.1.0.0
[+]
mtdev_get
(
struct mtdev*
dev
,
int
fd
,
struct input_event*
ev
,
int
ev_max
)
:
int
received signal SEGV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <sys/stat.h>
#include <fcntl.h>
#include <mtdev-plumbing.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
struct
mtdev*
dev
= mtdev_new(
)
;
int
fd
= open(
"testdata/sample.txt"
, O_RDWR);
struct
input_event
ev
= {
.time = (
struct
timeval) {.tv_sec =
1L
, .tv_usec =
2L
},
.type =
0
,
.code =
3
,
.value =
4
};
mtdev_get
(
dev
,
fd
,
&
ev
,
4
);
//target call
return
0
;
}
[+]
mtdev_idle
(
struct mtdev*
dev
,
int
fd
,
int
ms
)
:
int
received signal SEGV
1
2
3
4
5
6
7
8
9
10
#include <sys/stat.h>
#include <fcntl.h>
#include <mtdev-plumbing.h>
int
main(
int
argc
,
char
*
argv
[
]
)
{
struct
mtdev*
dev
= mtdev_new(
)
;
int
fd
= open(
"testdata/sample.txt"
, O_RDWR);
mtdev_idle
(
dev
,
fd
,
1
);
//target call
return
0
;
}
to the top
Generated on Thu Feb 23 04:28:45 2012 for
mtdev
by
API Sanity Checker
1.12.9
Unit test generator for a shared C/C++ library API