diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2022-02-11 19:42:41 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-04-04 23:29:02 +0300 |
commit | caae9458db3aef14b96921cf02c6093340350c4a (patch) | |
tree | 94afb63d6b917218c3059b84f3f01bf376b72888 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | aa1c05558e71422564a664fc4cafbf5999f1de0f (diff) | |
download | linux-caae9458db3aef14b96921cf02c6093340350c4a.tar.xz |
kunit: Introduce _NULL and _NOT_NULL macros
Today, when we want to check if a pointer is NULL and not ERR we have
two options:
KUNIT_EXPECT_TRUE(test, ptr == NULL);
or
KUNIT_EXPECT_PTR_NE(test, ptr, (struct mystruct *)NULL);
Create a new set of macros that take care of NULL checks.
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions