Files
libxmp/test-dev/test_read_file_8bit.c
Claudio Matsuoka 6459c6f723 Add error handling to dataio file operations
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-10-19 10:28:49 -02:00

15 lines
230 B
C

#include "test.h"
TEST(test_read_file_8bit)
{
FILE *f;
int x;
f = fopen("data/test.mmcmp", "rb");
fail_unless(f != NULL, "can't open data file");
x = read8(f, NULL);
fail_unless(x == 0x0000007a, "read error");
}
END_TEST