Lines Matching defs:expected
48 char *expected = NULL;
55 /* path of the expected output */
64 expected_path = (char*)malloc(sizeof(TEST_DIR_PATH) + test_name_length + sizeof(".expected"));
69 sprintf(expected_path, TEST_DIR_PATH"%s.expected", test_name);
71 /* read expected output */
72 expected = read_file(expected_path);
73 TEST_ASSERT_NOT_NULL_MESSAGE(expected, "Failed to read expected output.");
84 TEST_ASSERT_EQUAL_STRING(expected, actual);
87 if (expected != NULL)
89 free(expected);