Lines Matching refs:compare_file
852 compare_file(const char* path, const unsigned char* data, int len)
859 fprintf(stderr, "compare_file error (%s) opening %s\n", strerror(errno), path);
872 fprintf(stderr, "compare_file file length should be %d, was %d\n", len, amt);
880 fprintf(stderr, "compare_file read expected %d bytes but got %d\n", len, amt);
887 fprintf(stderr, "compare_file contents are different: (index, expected, actual)\n");
930 err = compare_file(filename, correct_data, sizeof(correct_data));
1066 err = compare_file(filename, correct_data, sizeof(correct_data));
1186 err = compare_file(filename, DATA_GOLDEN_FILE, DATA_GOLDEN_FILE_SIZE);