Skip to content

Commit

Permalink
tests: Don't run hwdb-dependent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Jan 15, 2023
1 parent 5561b84 commit f6fc43f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test-basics.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,14 +744,11 @@ test_system_info (void)

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

/* We can't properly test this as most build environments lack the udev hardware database.
* We still run the code for potential leak detection etc. */
dev_name = as_system_info_get_device_name_for_modalias (sysinfo, "usb:v1130p0202d*", FALSE, &error);
#ifdef HAVE_SYSTEMD
g_assert_no_error (error);
g_assert_cmpstr (dev_name, ==, "Tenx Technology, Inc. - Rocket Launcher");
#else
if (error != NULL)
g_error_free (g_steal_pointer (&error));
#endif
}

/**
Expand Down

0 comments on commit f6fc43f

Please sign in to comment.