Commit 88a543fc190c7c3f339e0650b833adfe81caa12e

Nick Mathewson 2010-05-08T19:09:09

Make unit test for add_file able to tell "error" from "done" Importantly, we don't actually want to call evbuffer_write() when the buffer is empty. This makes it an error to ever get a -1 return value from evbuffer_add_file(), which makes it safe for us to test the return value.