Skip to content

Commit

Permalink
tests: Ignore some tests on Windows (#687)
Browse files Browse the repository at this point in the history
As of #510, fetching the Kernel version is not supported on
Windows.
  • Loading branch information
QuLogic authored Dec 7, 2024
1 parent 68409b2 commit 5a0a1d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit 5a0a1d2

Please sign in to comment.