Lines Matching refs:right

689 				    right,				       \
694 const typeof(right) __right = (right); \
698 .right_text = #right, \
719 right, \
726 left, op, right, \
734 right, \
741 left, op, right, \
749 right, \
754 const char *__right = (right); \
758 .right_text = #right, \
780 right, \
786 const void *__right = (right); \
791 .right_text = #right, \
871 * KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal.
874 * @right: an arbitrary expression that evaluates to a primitive C type.
876 * Sets an expectation that the values that @left and @right evaluate to are
878 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
881 #define KUNIT_EXPECT_EQ(test, left, right) \
882 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
884 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \
887 left, ==, right, \
892 * KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal.
895 * @right: an arbitrary expression that evaluates to a pointer.
897 * Sets an expectation that the values that @left and @right evaluate to are
899 * KUNIT_EXPECT_TRUE(@test, (@left) == (@right)). See KUNIT_EXPECT_TRUE() for
902 #define KUNIT_EXPECT_PTR_EQ(test, left, right) \
903 KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, NULL)
905 #define KUNIT_EXPECT_PTR_EQ_MSG(test, left, right, fmt, ...) \
908 left, ==, right, \
913 * KUNIT_EXPECT_NE() - An expectation that @left and @right are not equal.
916 * @right: an arbitrary expression that evaluates to a primitive C type.
918 * Sets an expectation that the values that @left and @right evaluate to are not
920 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
923 #define KUNIT_EXPECT_NE(test, left, right) \
924 KUNIT_EXPECT_NE_MSG(test, left, right, NULL)
926 #define KUNIT_EXPECT_NE_MSG(test, left, right, fmt, ...) \
929 left, !=, right, \
934 * KUNIT_EXPECT_PTR_NE() - Expects that pointers @left and @right are not equal.
937 * @right: an arbitrary expression that evaluates to a pointer.
939 * Sets an expectation that the values that @left and @right evaluate to are not
941 * KUNIT_EXPECT_TRUE(@test, (@left) != (@right)). See KUNIT_EXPECT_TRUE() for
944 #define KUNIT_EXPECT_PTR_NE(test, left, right) \
945 KUNIT_EXPECT_PTR_NE_MSG(test, left, right, NULL)
947 #define KUNIT_EXPECT_PTR_NE_MSG(test, left, right, fmt, ...) \
950 left, !=, right, \
955 * KUNIT_EXPECT_LT() - An expectation that @left is less than @right.
958 * @right: an arbitrary expression that evaluates to a primitive C type.
961 * value that @right evaluates to. This is semantically equivalent to
962 * KUNIT_EXPECT_TRUE(@test, (@left) < (@right)). See KUNIT_EXPECT_TRUE() for
965 #define KUNIT_EXPECT_LT(test, left, right) \
966 KUNIT_EXPECT_LT_MSG(test, left, right, NULL)
968 #define KUNIT_EXPECT_LT_MSG(test, left, right, fmt, ...) \
971 left, <, right, \
976 * KUNIT_EXPECT_LE() - Expects that @left is less than or equal to @right.
979 * @right: an arbitrary expression that evaluates to a primitive C type.
982 * equal to the value that @right evaluates to. Semantically this is equivalent
983 * to KUNIT_EXPECT_TRUE(@test, (@left) <= (@right)). See KUNIT_EXPECT_TRUE() for
986 #define KUNIT_EXPECT_LE(test, left, right) \
987 KUNIT_EXPECT_LE_MSG(test, left, right, NULL)
989 #define KUNIT_EXPECT_LE_MSG(test, left, right, fmt, ...) \
992 left, <=, right, \
997 * KUNIT_EXPECT_GT() - An expectation that @left is greater than @right.
1000 * @right: an arbitrary expression that evaluates to a primitive C type.
1003 * the value that @right evaluates to. This is semantically equivalent to
1004 * KUNIT_EXPECT_TRUE(@test, (@left) > (@right)). See KUNIT_EXPECT_TRUE() for
1007 #define KUNIT_EXPECT_GT(test, left, right) \
1008 KUNIT_EXPECT_GT_MSG(test, left, right, NULL)
1010 #define KUNIT_EXPECT_GT_MSG(test, left, right, fmt, ...) \
1013 left, >, right, \
1018 * KUNIT_EXPECT_GE() - Expects that @left is greater than or equal to @right.
1021 * @right: an arbitrary expression that evaluates to a primitive C type.
1024 * the value that @right evaluates to. This is semantically equivalent to
1025 * KUNIT_EXPECT_TRUE(@test, (@left) >= (@right)). See KUNIT_EXPECT_TRUE() for
1028 #define KUNIT_EXPECT_GE(test, left, right) \
1029 KUNIT_EXPECT_GE_MSG(test, left, right, NULL)
1031 #define KUNIT_EXPECT_GE_MSG(test, left, right, fmt, ...) \
1034 left, >=, right, \
1039 * KUNIT_EXPECT_STREQ() - Expects that strings @left and @right are equal.
1042 * @right: an arbitrary expression that evaluates to a null terminated string.
1044 * Sets an expectation that the values that @left and @right evaluate to are
1046 * KUNIT_EXPECT_TRUE(@test, !strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1049 #define KUNIT_EXPECT_STREQ(test, left, right) \
1050 KUNIT_EXPECT_STREQ_MSG(test, left, right, NULL)
1052 #define KUNIT_EXPECT_STREQ_MSG(test, left, right, fmt, ...) \
1055 left, ==, right, \
1060 * KUNIT_EXPECT_STRNEQ() - Expects that strings @left and @right are not equal.
1063 * @right: an arbitrary expression that evaluates to a null terminated string.
1065 * Sets an expectation that the values that @left and @right evaluate to are
1067 * KUNIT_EXPECT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_EXPECT_TRUE()
1070 #define KUNIT_EXPECT_STRNEQ(test, left, right) \
1071 KUNIT_EXPECT_STRNEQ_MSG(test, left, right, NULL)
1073 #define KUNIT_EXPECT_STRNEQ_MSG(test, left, right, fmt, ...) \
1076 left, !=, right, \
1081 * KUNIT_EXPECT_MEMEQ() - Expects that the first @size bytes of @left and @right are equal.
1084 * @right: An arbitrary expression that evaluates to the specified size.
1087 * Sets an expectation that the values that @left and @right evaluate to are
1089 * KUNIT_EXPECT_TRUE(@test, !memcmp((@left), (@right), (@size))). See
1096 #define KUNIT_EXPECT_MEMEQ(test, left, right, size) \
1097 KUNIT_EXPECT_MEMEQ_MSG(test, left, right, size, NULL)
1099 #define KUNIT_EXPECT_MEMEQ_MSG(test, left, right, size, fmt, ...) \
1102 left, ==, right, \
1108 * KUNIT_EXPECT_MEMNEQ() - Expects that the first @size bytes of @left and @right are not equal.
1111 * @right: An arbitrary expression that evaluates to the specified size.
1114 * Sets an expectation that the values that @left and @right evaluate to are
1116 * KUNIT_EXPECT_TRUE(@test, memcmp((@left), (@right), (@size))). See
1123 #define KUNIT_EXPECT_MEMNEQ(test, left, right, size) \
1124 KUNIT_EXPECT_MEMNEQ_MSG(test, left, right, size, NULL)
1126 #define KUNIT_EXPECT_MEMNEQ_MSG(test, left, right, size, fmt, ...) \
1129 left, !=, right, \
1240 * KUNIT_ASSERT_EQ() - Sets an assertion that @left and @right are equal.
1243 * @right: an arbitrary expression that evaluates to a primitive C type.
1245 * Sets an assertion that the values that @left and @right evaluate to are
1249 #define KUNIT_ASSERT_EQ(test, left, right) \
1250 KUNIT_ASSERT_EQ_MSG(test, left, right, NULL)
1252 #define KUNIT_ASSERT_EQ_MSG(test, left, right, fmt, ...) \
1255 left, ==, right, \
1260 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1263 * @right: an arbitrary expression that evaluates to a pointer.
1265 * Sets an assertion that the values that @left and @right evaluate to are
1269 #define KUNIT_ASSERT_PTR_EQ(test, left, right) \
1270 KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, NULL)
1272 #define KUNIT_ASSERT_PTR_EQ_MSG(test, left, right, fmt, ...) \
1275 left, ==, right, \
1280 * KUNIT_ASSERT_NE() - An assertion that @left and @right are not equal.
1283 * @right: an arbitrary expression that evaluates to a primitive C type.
1285 * Sets an assertion that the values that @left and @right evaluate to are not
1289 #define KUNIT_ASSERT_NE(test, left, right) \
1290 KUNIT_ASSERT_NE_MSG(test, left, right, NULL)
1292 #define KUNIT_ASSERT_NE_MSG(test, left, right, fmt, ...) \
1295 left, !=, right, \
1300 * KUNIT_ASSERT_PTR_NE() - Asserts that pointers @left and @right are not equal.
1301 * KUNIT_ASSERT_PTR_EQ() - Asserts that pointers @left and @right are equal.
1304 * @right: an arbitrary expression that evaluates to a pointer.
1306 * Sets an assertion that the values that @left and @right evaluate to are not
1310 #define KUNIT_ASSERT_PTR_NE(test, left, right) \
1311 KUNIT_ASSERT_PTR_NE_MSG(test, left, right, NULL)
1313 #define KUNIT_ASSERT_PTR_NE_MSG(test, left, right, fmt, ...) \
1316 left, !=, right, \
1320 * KUNIT_ASSERT_LT() - An assertion that @left is less than @right.
1323 * @right: an arbitrary expression that evaluates to a primitive C type.
1326 * value that @right evaluates to. This is the same as KUNIT_EXPECT_LT(), except
1330 #define KUNIT_ASSERT_LT(test, left, right) \
1331 KUNIT_ASSERT_LT_MSG(test, left, right, NULL)
1333 #define KUNIT_ASSERT_LT_MSG(test, left, right, fmt, ...) \
1336 left, <, right, \
1340 * KUNIT_ASSERT_LE() - An assertion that @left is less than or equal to @right.
1343 * @right: an arbitrary expression that evaluates to a primitive C type.
1346 * equal to the value that @right evaluates to. This is the same as
1350 #define KUNIT_ASSERT_LE(test, left, right) \
1351 KUNIT_ASSERT_LE_MSG(test, left, right, NULL)
1353 #define KUNIT_ASSERT_LE_MSG(test, left, right, fmt, ...) \
1356 left, <=, right, \
1361 * KUNIT_ASSERT_GT() - An assertion that @left is greater than @right.
1364 * @right: an arbitrary expression that evaluates to a primitive C type.
1367 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GT(), except
1371 #define KUNIT_ASSERT_GT(test, left, right) \
1372 KUNIT_ASSERT_GT_MSG(test, left, right, NULL)
1374 #define KUNIT_ASSERT_GT_MSG(test, left, right, fmt, ...) \
1377 left, >, right, \
1382 * KUNIT_ASSERT_GE() - Assertion that @left is greater than or equal to @right.
1385 * @right: an arbitrary expression that evaluates to a primitive C type.
1388 * value that @right evaluates to. This is the same as KUNIT_EXPECT_GE(), except
1392 #define KUNIT_ASSERT_GE(test, left, right) \
1393 KUNIT_ASSERT_GE_MSG(test, left, right, NULL)
1395 #define KUNIT_ASSERT_GE_MSG(test, left, right, fmt, ...) \
1398 left, >=, right, \
1403 * KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.
1406 * @right: an arbitrary expression that evaluates to a null terminated string.
1408 * Sets an assertion that the values that @left and @right evaluate to are
1412 #define KUNIT_ASSERT_STREQ(test, left, right) \
1413 KUNIT_ASSERT_STREQ_MSG(test, left, right, NULL)
1415 #define KUNIT_ASSERT_STREQ_MSG(test, left, right, fmt, ...) \
1418 left, ==, right, \
1423 * KUNIT_ASSERT_STRNEQ() - Expects that strings @left and @right are not equal.
1426 * @right: an arbitrary expression that evaluates to a null terminated string.
1428 * Sets an expectation that the values that @left and @right evaluate to are
1430 * KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE()
1433 #define KUNIT_ASSERT_STRNEQ(test, left, right) \
1434 KUNIT_ASSERT_STRNEQ_MSG(test, left, right, NULL)
1436 #define KUNIT_ASSERT_STRNEQ_MSG(test, left, right, fmt, ...) \
1439 left, !=, right, \