dm: test: Don't clear global_data in dm_test_uclass_before_ready()
authorSimon Glass <sjg@chromium.org>
Sun, 19 Apr 2015 13:21:02 +0000 (07:21 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Apr 2015 17:15:36 +0000 (11:15 -0600)
commitf9fd4558ea977f0ad574c829026f26157176cea6
treeb6317bac1f4d74ad4152a6ed60afbdf0531e1fe3
parent98a1605309d82dd85f9046b7f81afabeba390b46
dm: test: Don't clear global_data in dm_test_uclass_before_ready()

We must not clear global_data even in tests, since the ram_buffer (which
is used by malloc()) will also be lost, and subsequent tests will fail.

Zero only the global_data fields that are required for the test to function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Joe Hershberger <joe.hershberger@ni.com>
test/dm/core.c