Skip to content

Commit

Permalink
Add fetchfs test case for reads way past end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeOsborn committed Feb 13, 2025
1 parent 0046ed4 commit abd3dcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/wasmfs/wasmfs_fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ void test_small_chunks() {
buf[size] = 0;
printf("buf %s\n",buf);
assert(strcmp(buf, "hello") == 0);
assert(read(fd, buf+size-1, 1024) == 1);

assert(close(fd) == 0);

Expand Down

0 comments on commit abd3dcb

Please sign in to comment.