Skip to content
Commit 67bb9731 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

sandbox: mmc: Start off with a zeroed file



When running multiple tests the mmc emulator calls malloc() to obtain the
memory for its disk image. Since the memory is not cleared, it is possible
that it happens to contain a partition table.

The dm_test_part() test (for one) relies on mmc0 being empty on startup.
Zero the memory to ensure that it is.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 3f23ce2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment