Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
d94eb977
Commit
d94eb977
authored
Jul 27, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a basic test for var_ToggleBool.
parent
1bc0945e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
test/src/misc/variables.c
test/src/misc/variables.c
+6
-0
No files found.
test/src/misc/variables.c
View file @
d94eb977
...
@@ -71,6 +71,12 @@ static void test_booleans( libvlc_int_t *p_libvlc )
...
@@ -71,6 +71,12 @@ static void test_booleans( libvlc_int_t *p_libvlc )
for
(
i
=
0
;
i
<
i_var_count
;
i
++
)
for
(
i
=
0
;
i
<
i_var_count
;
i
++
)
assert
(
var_GetBool
(
p_libvlc
,
psz_var_name
[
i
]
)
==
var_value
[
i
].
b_bool
);
assert
(
var_GetBool
(
p_libvlc
,
psz_var_name
[
i
]
)
==
var_value
[
i
].
b_bool
);
for
(
i
=
0
;
i
<
i_var_count
;
i
++
)
var_ToggleBool
(
p_libvlc
,
psz_var_name
[
i
]
);
for
(
i
=
0
;
i
<
i_var_count
;
i
++
)
assert
(
var_GetBool
(
p_libvlc
,
psz_var_name
[
i
]
)
!=
var_value
[
i
].
b_bool
);
for
(
i
=
0
;
i
<
i_var_count
;
i
++
)
for
(
i
=
0
;
i
<
i_var_count
;
i
++
)
var_Destroy
(
p_libvlc
,
psz_var_name
[
i
]
);
var_Destroy
(
p_libvlc
,
psz_var_name
[
i
]
);
}
}
...
...
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