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
a4cb8954
Commit
a4cb8954
authored
Aug 13, 2013
by
Daniel Vetter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: s/exit(EXIT_FAILURE)/igt_fail(1)/
Signed-off-by:
Daniel Vetter
<
daniel.vetter@ffwll.ch
>
parent
907377da
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
tests/gem_ctx_bad_destroy.c
tests/gem_ctx_bad_destroy.c
+2
-2
tests/gem_ctx_create.c
tests/gem_ctx_create.c
+1
-1
tests/gem_reg_read.c
tests/gem_reg_read.c
+4
-4
tests/gem_wait_render_timeout.c
tests/gem_wait_render_timeout.c
+1
-1
tests/sysfs_rc6_residency.c
tests/sysfs_rc6_residency.c
+2
-2
No files found.
tests/gem_ctx_bad_destroy.c
View file @
a4cb8954
...
...
@@ -66,11 +66,11 @@ static void handle_bad(int ret, int lerrno, int expected, const char *desc)
if
(
ret
!=
0
&&
lerrno
!=
expected
)
{
fprintf
(
stderr
,
"%s - errno was %d, but should have been %d
\n
"
,
desc
,
lerrno
,
expected
);
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
else
if
(
ret
==
0
)
{
fprintf
(
stderr
,
"%s - Command succeeded, but should have failed
\n
"
,
desc
);
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
}
...
...
tests/gem_ctx_create.c
View file @
a4cb8954
...
...
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
exit
(
77
);
}
else
if
(
ret
!=
0
)
{
fprintf
(
stderr
,
"%s
\n
"
,
strerror
(
errno
));
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
igt_assert
(
create
.
ctx_id
!=
0
);
...
...
tests/gem_reg_read.c
View file @
a4cb8954
...
...
@@ -42,11 +42,11 @@ static void handle_bad(int ret, int expected, const char *desc)
if
(
ret
!=
0
&&
errno
!=
expected
)
{
fprintf
(
stderr
,
"%s - errno was %d, but should have been %d
\n
"
,
desc
,
errno
,
expected
);
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
else
if
(
ret
==
0
)
{
fprintf
(
stderr
,
"%s - Command succeeded, but should have failed
\n
"
,
desc
);
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
}
...
...
@@ -57,7 +57,7 @@ static uint64_t timer_query(int fd)
reg_read
.
offset
=
0x2358
;
if
(
drmIoctl
(
fd
,
REG_READ_IOCTL
,
&
reg_read
))
{
perror
(
"positive test case failed: "
);
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
return
reg_read
.
val
;
...
...
@@ -78,7 +78,7 @@ int main(int argc, char *argv[])
sleep
(
1
);
if
(
timer_query
(
fd
)
==
reg_read
.
val
)
{
fprintf
(
stderr
,
"Timer isn't moving, probably busted
\n
"
);
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
/* bad reg */
...
...
tests/gem_wait_render_timeout.c
View file @
a4cb8954
...
...
@@ -185,7 +185,7 @@ int main(int argc, char **argv)
ret
=
gem_bo_wait_timeout
(
fd
,
dst2
->
handle
,
&
timeout
);
if
(
ret
)
{
fprintf
(
stderr
,
"Timed wait failed %s
\n
"
,
strerror
(
errno
));
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
igt_assert
(
gem_bo_busy
(
fd
,
dst2
->
handle
)
==
false
);
igt_assert
(
timeout
!=
0
);
...
...
tests/sysfs_rc6_residency.c
View file @
a4cb8954
...
...
@@ -111,13 +111,13 @@ int main(int argc, char *argv[])
if
(
diff
>
(
SLEEP_DURATION
+
RC6_FUDGE
))
{
fprintf
(
stderr
,
"Diff was too high. That is unpossible
\n
"
);
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
if
(
diff
<
(
SLEEP_DURATION
-
RC6_FUDGE
))
{
fprintf
(
stderr
,
"GPU was not in RC6 long enough. Check that "
"the GPU is as idle as possible (ie. no X, "
"running and running no other tests)
\n
"
);
exit
(
EXIT_FAILURE
);
igt_fail
(
1
);
}
exit
(
EXIT_SUCCESS
);
...
...
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