Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/rbus/consumer/elementTree.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ void checkmd5(const char* name, elementNode* root, const char* correctmd5)
char path[256];
snprintf(path, 255, "/tmp/%s.txt", name);
FILE* f = fopen(path, "w");

if(!f) {
printf("%s: Failed to open file %s\n", __FUNCTION__, path);
return;
}

fprintRegisteredElements(f, root, 0);
fclose(f);
char md5[MD5_LEN+1];
Expand Down