Skip to content

Commit d0ff7c4

Browse files
committed
Fix flaky test
1 parent 743ad6f commit d0ff7c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

c_src/i2c_nif.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ int test_open(const char *path, int flags)
3030
return 0x20;
3131
else if (strcmp(path, "/dev/i2c-flaky") == 0)
3232
return 0x30;
33-
else
33+
else {
34+
errno = ENOENT;
3435
return -1;
36+
}
3537
}
3638
int test_close(int fd)
3739
{

0 commit comments

Comments
 (0)