diff options
author | Patrick Venture <venture@google.com> | 2022-09-06 09:31:38 -0700 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2022-09-19 15:12:28 +0200 |
commit | d1592cbe07fa7b653aa9dde2eb8dafbe1de16885 (patch) | |
tree | fbe951e54044558b901b545c18e7aff03d3174d8 /tests/qtest | |
parent | 039fb5490695438d013b1c4ff8c63aadf441a99b (diff) | |
download | qemu-d1592cbe07fa7b653aa9dde2eb8dafbe1de16885.zip qemu-d1592cbe07fa7b653aa9dde2eb8dafbe1de16885.tar.gz qemu-d1592cbe07fa7b653aa9dde2eb8dafbe1de16885.tar.bz2 |
tests/qtest: npcm7xx-emc-test: Skip checking MAC
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>
Diffstat (limited to 'tests/qtest')
-rw-r--r-- | tests/qtest/npcm7xx_emc-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qtest/npcm7xx_emc-test.c b/tests/qtest/npcm7xx_emc-test.c index c373d24..b046f1d 100644 --- a/tests/qtest/npcm7xx_emc-test.c +++ b/tests/qtest/npcm7xx_emc-test.c @@ -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), ==, |