commit | 6c2a8718deb76b60759e33c06137ca79b36047c3 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Fri Jul 17 00:20:14 2020 +0200 |
committer | Simon Glass <sjg@chromium.org> | Sat Jul 25 14:46:57 2020 -0600 |
tree | 543e3a0e9bca963b12b3a1eb94548db76bc397aa | |
parent | c74227f7e03524a7b17819fea5bd149ea5e0b6d8 [diff] |
test/dm: check if devices exist Running 'ut dm' on the sandbox without -D or -d results in segmentation faults due to NULL pointer dereferences. Check that device pointers are non-NULL before using them. Use ut_assertnonnull() for pointers instead of ut_assert(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Tested-by: Philippe Reynes <philippe.reynes@softathome.com>