Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some tests on Windows #687

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/test-basics.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,10 @@ test_system_info (void)
g_assert_cmpstr (as_system_info_get_os_id (sysinfo), ==, "debian");
g_assert_cmpstr (as_system_info_get_os_cid (sysinfo), ==, "org.debian.debian");

#ifndef G_OS_WIN32
g_assert_nonnull (as_system_info_get_kernel_name (sysinfo));
g_assert_nonnull (as_system_info_get_kernel_version (sysinfo));
#endif

g_assert_cmpint (as_system_info_get_memory_total (sysinfo), >=, 128);

Expand Down
2 changes: 2 additions & 0 deletions tests/test-misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ test_relation_satisfy_check (void)
AS_RELATION_STATUS_NOT_SATISFIED);
g_clear_pointer (&rcr, g_object_unref);

#ifndef G_OS_WIN32
/* test kernel */
as_relation_set_kind (relation, AS_RELATION_KIND_REQUIRES);
as_relation_set_item_kind (relation, AS_RELATION_ITEM_KIND_KERNEL);
Expand Down Expand Up @@ -376,6 +377,7 @@ test_relation_satisfy_check (void)
==,
AS_RELATION_STATUS_NOT_SATISFIED);
g_clear_pointer (&rcr, g_object_unref);
#endif

/* test display length */
as_relation_set_kind (relation, AS_RELATION_KIND_RECOMMENDS);
Expand Down
Loading