tests: acpi: silence applesmc warning about invalid key

OSK value is irrelevant for ACPI test case.
Supply fake OSK explicitly to prevent QEMU complaining about
invalid key when it fallbacks to default_osk.

Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20220728133713.1369596-1-imammedo@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Igor Mammedov 2022-07-28 09:37:13 -04:00 committed by Michael S. Tsirkin
parent 4f41b4e445
commit 888fbaaf02

View File

@ -1632,7 +1632,9 @@ static void test_acpi_q35_applesmc(void)
.variant = ".applesmc",
};
test_acpi_one("-device isa-applesmc", &data);
/* supply fake 64-byte OSK to silence missing key warning */
test_acpi_one("-device isa-applesmc,osk=any64characterfakeoskisenough"
"topreventinvalidkeywarningsonstderr", &data);
free_test_data(&data);
}