Message ID | 20210513193204.816681-2-davidgow@google.com |
---|---|
State | Accepted |
Commit | 3747b5c0d8ec8b03b0856e29241949baa0e67803 |
Headers | show |
Series | [v2,01/10] kunit: Do not typecheck binary assertions | expand |
diff --git a/include/kunit/test.h b/include/kunit/test.h index 4c56ffcb7403..b68c61348121 100644 --- a/include/kunit/test.h +++ b/include/kunit/test.h @@ -1128,8 +1128,8 @@ do { \ fmt, \ ...) \ do { \ - typeof(left) __left = (left); \ - typeof(right) __right = (right); \ + const char *__left = (left); \ + const char *__right = (right); \ \ KUNIT_ASSERTION(test, \ strcmp(__left, __right) op 0, \