mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 23:37:53 +00:00
trivial: Fix a BIOS setting self test value
PVS: The 'ret' variable is assigned but is not used by the end of the function.
This commit is contained in:
parent
9ab03d586e
commit
6bb1b1c81f
@ -1487,17 +1487,20 @@ fwupd_bios_settings_func(void)
|
|||||||
g_assert_nonnull(json2);
|
g_assert_nonnull(json2);
|
||||||
ret = fu_test_compare_lines(json2,
|
ret = fu_test_compare_lines(json2,
|
||||||
"{\n"
|
"{\n"
|
||||||
" \"BiosSettingReadOnly\" : \"false\",\n"
|
|
||||||
" \"BiosSettingType\" : 1,\n"
|
|
||||||
" \"Name\" : \"UEFISecureBoot\",\n"
|
" \"Name\" : \"UEFISecureBoot\",\n"
|
||||||
" \"Description\" : \"Controls Secure boot\",\n"
|
" \"Description\" : \"Controls Secure boot\",\n"
|
||||||
" \"Filename\" : \"/path/to/bar\",\n"
|
" \"Filename\" : \"/path/to/bar\",\n"
|
||||||
|
" \"BiosSettingCurrentValue\" : \"Disabled\",\n"
|
||||||
|
" \"BiosSettingReadOnly\" : \"false\",\n"
|
||||||
|
" \"BiosSettingType\" : 1,\n"
|
||||||
" \"BiosSettingPossibleValues\" : [\n"
|
" \"BiosSettingPossibleValues\" : [\n"
|
||||||
" \"Disabled\",\n"
|
" \"Disabled\",\n"
|
||||||
" \"Enabled\"\n"
|
" \"Enabled\"\n"
|
||||||
" ]\n"
|
" ]\n"
|
||||||
"}",
|
"}",
|
||||||
&error);
|
&error);
|
||||||
|
g_assert_no_error(error);
|
||||||
|
g_assert_true(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user