diff options
author | Andrew Scull | 2022-05-16 10:41:37 +0000 |
---|---|---|
committer | Tom Rini | 2022-06-08 09:24:04 -0400 |
commit | acd3b27a6564b94ffd2d4cf0c2726816bc1bffc3 (patch) | |
tree | 1a00c9819d0cfdde42cda01fb93c8ad84e184242 /test/dm/virtio_device.c | |
parent | 8df508ff3d4cfe8a2b7a706518692e194cc7f021 (diff) |
virtio: sandbox: Bind RNG rather than block device
The virtio-rng driver is extremely simple, making it suitable for
testing more of the virtio uclass logic. Have the sandbox driver bind
the virtio-rng driver rather than the virtio-blk driver so it can be
used in tests.
Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/virtio_device.c')
-rw-r--r-- | test/dm/virtio_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dm/virtio_device.c b/test/dm/virtio_device.c index 46f4798fc29..f5f23497502 100644 --- a/test/dm/virtio_device.c +++ b/test/dm/virtio_device.c @@ -25,10 +25,10 @@ static int dm_test_virtio_base(struct unit_test_state *uts) ut_assertok(uclass_first_device(UCLASS_VIRTIO, &bus)); ut_assertnonnull(bus); - /* check the child virtio-blk device is bound */ + /* check the child virtio-rng device is bound */ ut_assertok(device_find_first_child(bus, &dev)); ut_assertnonnull(dev); - ut_assertok(strcmp(dev->name, "virtio-blk#0")); + ut_asserteq_str("virtio-rng#0", dev->name); /* check driver status */ ut_assertok(virtio_get_status(dev, &status)); |