summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-03-18 15:56:23 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-06-03 14:03:02 +0200
commitc4f00daa5b390a74f13a271e7237e173c527bbce (patch)
treee655493add50166fcb766581895d5cc6187503f2 /tests
parenteadcd3b252dde196de10874fe999e1af803f22d3 (diff)
downloadqemu-c4f00daa5b390a74f13a271e7237e173c527bbce.zip
imx25-pdk: create ds1338 for qtest inside the test
There is no need to have a test device created by the board. Instead, create it in the qtest so that we will be able to run it on other boards too. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ds1338-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ds1338-test.c b/tests/ds1338-test.c
index 88f829f241..bd72a159cb 100644
--- a/tests/ds1338-test.c
+++ b/tests/ds1338-test.c
@@ -54,7 +54,7 @@ int main(int argc, char **argv)
g_test_init(&argc, &argv, NULL);
- s = qtest_start("-display none -machine imx25-pdk");
+ s = qtest_start("-display none -machine imx25-pdk -device ds1338,address=0x68");
i2c = imx_i2c_create(s, IMX25_I2C_0_BASE);
addr = DS1338_ADDR;