Lines Matching full:expected
165 * Defines a test by name and the expected term signal.
507 * @expected: expected value
510 * ASSERT_EQ(expected, measured): expected == measured
512 #define ASSERT_EQ(expected, seen) \ argument
513 __EXPECT(expected, #expected, seen, #seen, ==, 1)
518 * @expected: expected value
521 * ASSERT_NE(expected, measured): expected != measured
523 #define ASSERT_NE(expected, seen) \ argument
524 __EXPECT(expected, #expected, seen, #seen, !=, 1)
529 * @expected: expected value
532 * ASSERT_LT(expected, measured): expected < measured
534 #define ASSERT_LT(expected, seen) \ argument
535 __EXPECT(expected, #expected, seen, #seen, <, 1)
540 * @expected: expected value
543 * ASSERT_LE(expected, measured): expected <= measured
545 #define ASSERT_LE(expected, seen) \ argument
546 __EXPECT(expected, #expected, seen, #seen, <=, 1)
551 * @expected: expected value
554 * ASSERT_GT(expected, measured): expected > measured
556 #define ASSERT_GT(expected, seen) \ argument
557 __EXPECT(expected, #expected, seen, #seen, >, 1)
562 * @expected: expected value
565 * ASSERT_GE(expected, measured): expected >= measured
567 #define ASSERT_GE(expected, seen) \ argument
568 __EXPECT(expected, #expected, seen, #seen, >=, 1)
603 * @expected: expected value
606 * ASSERT_STREQ(expected, measured): !strcmp(expected, measured)
608 #define ASSERT_STREQ(expected, seen) \ argument
609 __EXPECT_STR(expected, seen, ==, 1)
614 * @expected: expected value
617 * ASSERT_STRNE(expected, measured): strcmp(expected, measured)
619 #define ASSERT_STRNE(expected, seen) \ argument
620 __EXPECT_STR(expected, seen, !=, 1)
625 * @expected: expected value
628 * EXPECT_EQ(expected, measured): expected == measured
630 #define EXPECT_EQ(expected, seen) \ argument
631 __EXPECT(expected, #expected, seen, #seen, ==, 0)
636 * @expected: expected value
639 * EXPECT_NE(expected, measured): expected != measured
641 #define EXPECT_NE(expected, seen) \ argument
642 __EXPECT(expected, #expected, seen, #seen, !=, 0)
647 * @expected: expected value
650 * EXPECT_LT(expected, measured): expected < measured
652 #define EXPECT_LT(expected, seen) \ argument
653 __EXPECT(expected, #expected, seen, #seen, <, 0)
658 * @expected: expected value
661 * EXPECT_LE(expected, measured): expected <= measured
663 #define EXPECT_LE(expected, seen) \ argument
664 __EXPECT(expected, #expected, seen, #seen, <=, 0)
669 * @expected: expected value
672 * EXPECT_GT(expected, measured): expected > measured
674 #define EXPECT_GT(expected, seen) \ argument
675 __EXPECT(expected, #expected, seen, #seen, >, 0)
680 * @expected: expected value
683 * EXPECT_GE(expected, measured): expected >= measured
685 #define EXPECT_GE(expected, seen) \ argument
686 __EXPECT(expected, #expected, seen, #seen, >=, 0)
721 * @expected: expected value
724 * EXPECT_STREQ(expected, measured): !strcmp(expected, measured)
726 #define EXPECT_STREQ(expected, seen) \ argument
727 __EXPECT_STR(expected, seen, ==, 0)
732 * @expected: expected value
735 * EXPECT_STRNE(expected, measured): strcmp(expected, measured)
737 #define EXPECT_STRNE(expected, seen) \ argument
738 __EXPECT_STR(expected, seen, !=, 0)
766 __TH_LOG("Expected %s (%ju) %s %s (%ju)", \
774 __TH_LOG("Expected %s (%ju) %s %s (%jd)", \
782 __TH_LOG("Expected %s (%jd) %s %s (%ju)", \
790 __TH_LOG("Expected %s (%jd) %s %s (%jd)", \
806 __TH_LOG("Expected '%s' %s '%s'.", __exp, #_t, __seen); \
861 * XFAIL_ADD() - mark variant + test case combination as expected to fail
866 * Mark a combination of variant + test case for a given fixture as expected