commit | 8ed6e11e26d42e8f1d122cfc121768fd9fbeb2f2 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Fri Jul 17 00:20:14 2020 +0200 |
committer | Simon Glass <sjg@chromium.org> | Mon Jul 20 11:37:47 2020 -0600 |
tree | 932ac4bf61bf50e484bb2c345899a275d39591d1 | |
parent | 3373ee0f6b14f232f500456cfab05a61df381c28 [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>