Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
steam-runtime-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
steamrt
steam-runtime-tools
Commits
fd3fa75b
Commit
fd3fa75b
authored
5 years ago
by
Jeremy Whiting
Committed by
Jeremy Whiting
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add terminating signal and exit status checks to library test.
parent
f0963844
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!87
Log exit status
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/library.c
+6
-0
6 additions, 0 deletions
tests/library.c
with
6 additions
and
0 deletions
tests/library.c
+
6
−
0
View file @
fd3fa75b
...
...
@@ -342,6 +342,8 @@ test_deb_symbols (Fixture *f,
SRT_LIBRARY_SYMBOLS_FORMAT_DEB_SYMBOLS
,
&
library
);
g_assert_cmpint
(
issues
,
==
,
SRT_LIBRARY_ISSUES_MISSING_SYMBOLS
);
g_assert_cmpint
(
srt_library_get_exit_status
(
library
),
==
,
0
);
g_assert_cmpint
(
srt_library_get_terminating_signal
(
library
),
==
,
0
);
/* If we had mistakenly parsed the sections that refer to libzextra.so.0
* and libzmore.so.0, then we would see more missing symbols than this.
...
...
@@ -699,6 +701,8 @@ test_missing_library (Fixture *f,
(
SRT_LIBRARY_ISSUES_CANNOT_LOAD
|
SRT_LIBRARY_ISSUES_UNKNOWN_EXPECTATIONS
));
g_assert_cmpstr
(
srt_library_get_absolute_path
(
library
),
==
,
NULL
);
g_assert_cmpint
(
srt_library_get_exit_status
(
library
),
==
,
1
);
g_assert_cmpint
(
srt_library_get_terminating_signal
(
library
),
==
,
0
);
missing_symbols
=
srt_library_get_missing_symbols
(
library
);
g_assert_nonnull
(
missing_symbols
);
...
...
@@ -737,6 +741,8 @@ test_missing_arch (Fixture *f,
(
SRT_LIBRARY_ISSUES_CANNOT_LOAD
|
SRT_LIBRARY_ISSUES_UNKNOWN_EXPECTATIONS
));
g_assert_cmpstr
(
srt_library_get_absolute_path
(
library
),
==
,
NULL
);
g_assert_cmpint
(
srt_library_get_exit_status
(
library
),
==
,
-
1
);
g_assert_cmpint
(
srt_library_get_terminating_signal
(
library
),
==
,
0
);
missing_symbols
=
srt_library_get_missing_symbols
(
library
);
g_assert_nonnull
(
missing_symbols
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment