commit | 851da976dc1d72becc03e144b38c4efab9e7b361 | [log] [tgz] |
---|---|---|
author | Grant Likely <grant.likely@linaro.org> | Tue Nov 04 13:14:13 2014 +0000 |
committer | Grant Likely <grant.likely@linaro.org> | Tue Nov 04 16:43:04 2014 +0000 |
tree | 48e6166e60b3bbca8a1608386aed15eb2a3f4c0b | |
parent | 5063e25a302e6a83f6590d9a06bd5f6400b17430 [diff] |
of/unittest: Remove test devices after adding them The of_platform_populate() test cases don't remove the test devices after they are added. Fix this by adding tests for of_platform_depopulate(). At the same time rework the selftest() macro to return the test result value. This makes it easy to use the macro inside an if() condition. Signed-off-by: Grant Likely <grant.likely@linaro.org>