]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/qtest: npcm7xx-emc-test: Skip checking MAC
authorPatrick Venture <venture@google.com>
Tue, 6 Sep 2022 16:31:38 +0000 (09:31 -0700)
committerThomas Huth <thuth@redhat.com>
Mon, 19 Sep 2022 13:12:28 +0000 (15:12 +0200)
The register tests walks all the registers to verify they are initially
0 when appropriate.  However, if the MAC address is set in the register
space, this should not be checked against 0.

Reviewed-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Patrick Venture <venture@google.com>
Message-Id: <20220906163138.2831353-1-venture@google.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/npcm7xx_emc-test.c

index c373d24e1e23dc85896ebc563ac18bbc3f38d540..b046f1d76af0aee431c60dc8157371974ea1773f 100644 (file)
@@ -381,7 +381,8 @@ static void test_init(gconstpointer test_data)
 
 #undef CHECK_REG
 
-    for (i = 0; i < NUM_CAMML_REGS; ++i) {
+    /* Skip over the MAC address registers, which is BASE+0 */
+    for (i = 1; i < NUM_CAMML_REGS; ++i) {
         g_assert_cmpuint(emc_read(qts, mod, REG_CAMM_BASE + i * 2), ==,
                          0);
         g_assert_cmpuint(emc_read(qts, mod, REG_CAML_BASE + i * 2), ==,