Skip to content
Snippets Groups Projects
Commit fd3fa75b authored by Jeremy Whiting's avatar Jeremy Whiting Committed by Jeremy Whiting
Browse files

Add terminating signal and exit status checks to library test.

parent f0963844
No related branches found
No related tags found
1 merge request!87Log exit status
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment