tests/qtest/q35-test: Remove the obsolete test_without_smram_base test
PATCH 1/1 tests/qtest/q35-test: Remove the obsolete test_without_smram_base test
From: Thomas Huth <[email protected]>
With the release of QEMU 10.1, the pc-q35-4.1 machine will be older than 6 years and thus will get disabled automatically by the MACHINE_VER_DELETION() macro. Remove the related test to avoid that the q35-test is failing when the machine is not available anymore.
--- tests/qtest/q35-test.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-)
tests/qtest/q35-test.c +1 -36
@@ -246,41 +246,6 @@ static void test_smram_smbase_lock(void)qtest_quit (qts); } -static void test_without_smram_base (void ) -{ -QPCIBus *pcibus; -QPCIDevice *pcidev; -QTestState *qts; -int i; - - qts =qtest_init ("-M pc-q35-4.1" ); - - pcibus =qpci_new_pc (qts,NULL ); -g_assert (pcibus !=NULL ); - - pcidev =qpci_device_find (pcibus,0 ); -g_assert (pcidev !=NULL ); - -/* check that RAM is accessible */ -qtest_writeb (qts,SMBASE ,SMRAM_TEST_PATTERN ); - g_assert_cmpint(qtest_readb(qts, SMBASE), ==, SMRAM_TEST_PATTERN); - -/* check that writing to 0x9c succeeds */ -for (i =0 ; i <=0xff ; i++) { -qpci_config_writeb (pcidev,MCH_HOST_BRIDGE_F_SMBASE , i); -g_assert (qpci_config_readb (pcidev,MCH_HOST_BRIDGE_F_SMBASE ) == i); - } - -/* check that RAM is still accessible */ -qtest_writeb (qts,SMBASE ,SMRAM_TEST_PATTERN +1 ); - g_assert_cmpint(qtest_readb(qts, SMBASE), ==, (SMRAM_TEST_PATTERN + 1)); - -g_free (pcidev); -qpci_free_pc (pcibus); - -qtest_quit (qts); -} -int main (int argc,char **argv) {g_test_init (&argc, &argv,NULL );
@@ -293,6 +258,6 @@ int main(int argc, char **argv)qtest_add_data_func ("/q35/tseg-size/ext/16mb" , &tseg_ext_16mb, test_tseg_size);qtest_add_func ("/q35/smram/smbase_lock" , test_smram_smbase_lock); -qtest_add_func ("/q35/smram/legacy_smbase" , test_without_smram_base); +return g_test_run (); }
Signature · 1 line
2.49.0
Quoted 11 lines · Thomas Huth
From: Thomas Huth <[email protected]>
With the release of QEMU 10.1, the pc-q35-4.1 machine will be older than 6 years and thus will get disabled automatically by the
MACHINE_VER_DELETION()macro. Remove the related test to avoid that the q35-test is failing when the machine is not available anymore.Signed-off-by Thomas Huth <[email protected]>--- tests/qtest/q35-test.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 11 lines · Thomas Huth
From: Thomas Huth <[email protected]>
With the release of QEMU 10.1, the pc-q35-4.1 machine will be older than 6 years and thus will get disabled automatically by the
MACHINE_VER_DELETION()macro. Remove the related test to avoid that the q35-test is failing when the machine is not available anymore.Signed-off-by Thomas Huth <[email protected]>--- tests/qtest/q35-test.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-)
Fabiano Rosas
AppliedQuoted 59 lines · Thomas Huth
From: Thomas Huth <[email protected]>
With the release of QEMU 10.1, the pc-q35-4.1 machine will be older than 6 years and thus will get disabled automatically by the
MACHINE_VER_DELETION()macro. Remove the related test to avoid that the q35-test is failing when the machine is not available anymore.Signed-off-by Thomas Huth <[email protected]>--- tests/qtest/q35-test.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-)tests/qtest/q35-test.c +0
-35@@ -246,41 +246,6 @@ static void test_smram_smbase_lock(void)qtest_quit (qts); } -static void test_without_smram_base (void ) -{ -QPCIBus *pcibus; -QPCIDevice *pcidev; -QTestState *qts; -int i; - - qts =qtest_init ("-M pc-q35-4.1" ); - - pcibus =qpci_new_pc (qts,NULL ); -g_assert (pcibus !=NULL ); - - pcidev =qpci_device_find (pcibus,0 ); -g_assert (pcidev !=NULL ); - -/* check that RAM is accessible */ -qtest_writeb (qts,SMBASE ,SMRAM_TEST_PATTERN ); - g_assert_cmpint(qtest_readb(qts, SMBASE), ==, SMRAM_TEST_PATTERN); - -/* check that writing to 0x9c succeeds */ -for (i =0 ; i <=0xff ; i++) { -qpci_config_writeb (pcidev,MCH_HOST_BRIDGE_F_SMBASE , i); -g_assert (qpci_config_readb (pcidev,MCH_HOST_BRIDGE_F_SMBASE ) == i); - } - -/* check that RAM is still accessible */ -qtest_writeb (qts,SMBASE ,SMRAM_TEST_PATTERN +1 ); - g_assert_cmpint(qtest_readb(qts, SMBASE), ==, (SMRAM_TEST_PATTERN + 1)); - -g_free (pcidev); -qpci_free_pc (pcibus); - -qtest_quit (qts); -} -int main (int argc,char **argv) {g_test_init (&argc, &argv,NULL );
tests/qtest/q35-test.c int main(int argc, char **argv) · line 263
Quoted 7 lines
tests/qtest/q35-test.c +1
-1@@ -293,6 +258,6 @@ int main(int argc, char **argv)qtest_add_data_func ("/q35/tseg-size/ext/16mb" , &tseg_ext_16mb, test_tseg_size);qtest_add_func ("/q35/smram/smbase_lock" , test_smram_smbase_lock); -qtest_add_func ("/q35/smram/legacy_smbase" , test_without_smram_base); +return g_test_run (); }
Queued, thanks!
Quoted 13 lines · Fabiano Rosas
Quoted 11 lines · Thomas Huth
From: Thomas Huth <[email protected]>
With the release of QEMU 10.1, the pc-q35-4.1 machine will be older than 6 years and thus will get disabled automatically by the
MACHINE_VER_DELETION()macro. Remove the related test to avoid that the q35-test is failing when the machine is not available anymore.Signed-off-by Thomas Huth <[email protected]>--- tests/qtest/q35-test.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-)
snip
Quoted 1 line
Queued, thanks!
FYI, I included this in the pull request I just sent, as it is a required bugfix for enabling automatic skipping of machine type registration.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|