Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
igt-gpu-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
drm
igt-gpu-tools
Commits
b30d95f3
Commit
b30d95f3
authored
Aug 13, 2013
by
Daniel Vetter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: s/exit(77)/igt_skip()/
Signed-off-by:
Daniel Vetter
<
daniel.vetter@ffwll.ch
>
parent
c9d03782
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
tests/gem_ctx_bad_destroy.c
tests/gem_ctx_bad_destroy.c
+1
-1
tests/gem_ctx_bad_exec.c
tests/gem_ctx_bad_exec.c
+1
-1
tests/gem_ctx_create.c
tests/gem_ctx_create.c
+1
-1
tests/gem_ctx_exec.c
tests/gem_ctx_exec.c
+1
-1
tests/gem_seqno_wrap.c
tests/gem_seqno_wrap.c
+1
-1
tests/sysfs_rc6_residency.c
tests/sysfs_rc6_residency.c
+1
-1
tests/sysfs_rps.c
tests/sysfs_rps.c
+1
-1
No files found.
tests/gem_ctx_bad_destroy.c
View file @
b30d95f3
...
...
@@ -54,7 +54,7 @@ static uint32_t context_create(int fd)
ret
=
drmIoctl
(
fd
,
CONTEXT_CREATE_IOCTL
,
&
create
);
if
(
ret
==
-
1
&&
(
errno
==
ENODEV
||
errno
==
EINVAL
))
exit
(
77
);
igt_skip
(
);
else
if
(
ret
)
abort
();
...
...
tests/gem_ctx_bad_exec.c
View file @
b30d95f3
...
...
@@ -60,7 +60,7 @@ static uint32_t context_create(int fd)
ret
=
drmIoctl
(
fd
,
CONTEXT_CREATE_IOCTL
,
&
create
);
if
(
ret
==
-
1
&&
(
errno
==
ENODEV
||
errno
==
EINVAL
))
{
exit
(
77
);
igt_skip
(
);
}
else
if
(
ret
)
{
abort
();
}
...
...
tests/gem_ctx_create.c
View file @
b30d95f3
...
...
@@ -53,7 +53,7 @@ int main(int argc, char *argv[])
if
(
ret
!=
0
&&
(
errno
==
ENODEV
||
errno
==
EINVAL
))
{
printf
(
"Kernel is too old, or contexts not supported: %s
\n
"
,
strerror
(
errno
));
exit
(
77
);
igt_skip
(
);
}
else
if
(
ret
!=
0
)
{
fprintf
(
stderr
,
"%s
\n
"
,
strerror
(
errno
));
igt_fail
(
1
);
...
...
tests/gem_ctx_exec.c
View file @
b30d95f3
...
...
@@ -65,7 +65,7 @@ static uint32_t context_create(int fd)
ret
=
drmIoctl
(
fd
,
CONTEXT_CREATE_IOCTL
,
&
create
);
if
(
ret
==
-
1
&&
(
errno
==
ENODEV
||
errno
==
EINVAL
))
exit
(
77
);
igt_skip
(
);
else
if
(
ret
)
abort
();
...
...
tests/gem_seqno_wrap.c
View file @
b30d95f3
...
...
@@ -371,7 +371,7 @@ static int dfs_open(int mode)
fprintf
(
stderr
,
"error %d opening '%s/%d/%s'. too old kernel?
\n
"
,
errno
,
dfs_base
,
card_index
,
dfs_entry
);
exit
(
77
);
igt_skip
(
);
}
return
fh
;
...
...
tests/sysfs_rc6_residency.c
View file @
b30d95f3
...
...
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
file
=
fopen
(
path
,
"r"
);
if
(
!
file
)
{
printf
(
"kernel too old or rc6 not supported on this platform.
\n
"
);
exit
(
77
);
igt_skip
(
);
}
/* claim success if no rc6 enabled. */
...
...
tests/sysfs_rps.c
View file @
b30d95f3
...
...
@@ -150,7 +150,7 @@ int main(int argc, char *argv[])
junk
->
filp
=
fopen
(
path
,
junk
->
mode
);
if
(
junk
->
filp
==
NULL
)
{
printf
(
"Kernel is too old. GTFO
\n
"
);
exit
(
77
);
igt_skip
(
);
}
val
=
readval
(
junk
->
filp
);
igt_assert
(
val
>=
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