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
wayland
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
24
Merge Requests
24
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
wayland
wayland
Commits
5e096ccc
Commit
5e096ccc
authored
Jan 10, 2014
by
U. Artie Eoff
Committed by
Kristian Høgsberg
Jan 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event-loop-test: assert non-NULL results
Signed-off-by:
U. Artie Eoff
<
ullysses.a.eoff@intel.com
>
parent
3a1be1e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tests/event-loop-test.c
tests/event-loop-test.c
+5
-0
No files found.
tests/event-loop-test.c
View file @
5e096ccc
...
...
@@ -48,10 +48,12 @@ TEST(event_loop_post_dispatch_check)
int
dispatch_ran
=
0
;
int
p
[
2
];
assert
(
loop
);
assert
(
pipe
(
p
)
==
0
);
source
=
wl_event_loop_add_fd
(
loop
,
p
[
0
],
WL_EVENT_READABLE
,
fd_dispatch
,
&
dispatch_ran
);
assert
(
source
);
wl_event_source_check
(
source
);
wl_event_loop_dispatch
(
loop
,
0
);
...
...
@@ -105,6 +107,8 @@ TEST(event_loop_free_source_with_data)
* run (and that we don't crash, of course).
*/
assert
(
loop
);
context
.
count
=
0
;
assert
(
pipe
(
context
.
p1
)
==
0
);
assert
(
pipe
(
context
.
p2
)
==
0
);
...
...
@@ -184,6 +188,7 @@ TEST(event_loop_timer)
int
got_it
=
0
;
source
=
wl_event_loop_add_timer
(
loop
,
timer_callback
,
&
got_it
);
assert
(
source
);
wl_event_source_timer_update
(
source
,
10
);
wl_event_loop_dispatch
(
loop
,
0
);
assert
(
!
got_it
);
...
...
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