Lines Matching refs:compare_file
851 compare_file(const char* path, const unsigned char* data, int len)
858 fprintf(stderr, "compare_file error (%s) opening %s\n", strerror(errno), path);
871 fprintf(stderr, "compare_file file length should be %d, was %d\n", len, amt);
879 fprintf(stderr, "compare_file read expected %d bytes but got %d\n", len, amt);
886 fprintf(stderr, "compare_file contents are different: (index, expected, actual)\n");
929 err = compare_file(filename, correct_data, sizeof(correct_data));
1065 err = compare_file(filename, correct_data, sizeof(correct_data));
1185 err = compare_file(filename, DATA_GOLDEN_FILE, DATA_GOLDEN_FILE_SIZE);