WIP: read_chunk end-to-end!

This commit is contained in:
Scott Lystig Fritchie 2015-06-23 16:24:08 +09:00
parent 44c22bf752
commit 6e77a4ea74

View file

@ -74,9 +74,9 @@ smoke_test2() ->
Size3 = iolist_size(Chunk3), Size3 = iolist_size(Chunk3),
ok = ?C:write_chunk(Clnt, File2, Off3, Chunk3, none), ok = ?C:write_chunk(Clnt, File2, Off3, Chunk3, none),
Reads = [{Chunk1, File1, Off1, Size1}, Reads = [{iolist_to_binary(Chunk1), File1, Off1, Size1},
{Chunk2, File2, Off2, Size2}, {iolist_to_binary(Chunk2), File2, Off2, Size2},
{Chunk3, File2, Off3, Size3}], {iolist_to_binary(Chunk3), File2, Off3, Size3}],
[{ok, Ch} = ?C:read_chunk(Clnt, Fl, Off, Sz) || [{ok, Ch} = ?C:read_chunk(Clnt, Fl, Off, Sz) ||
{Ch, Fl, Off, Sz} <- Reads], {Ch, Fl, Off, Sz} <- Reads],