add iob test
parent
a36316a0a5
commit
63ba06c763
@ -0,0 +1,13 @@
|
||||
#include <assert.h>
|
||||
#include "iob.h"
|
||||
|
||||
main() {
|
||||
int64 fd;
|
||||
io_batch* b;
|
||||
assert(io_readfile(&fd,"GNUmakefile"));
|
||||
assert(b=iob_new(10));
|
||||
assert(iob_addbuf(b,"Huhu",4));
|
||||
assert(iob_addbuf(b," fnord\n",7));
|
||||
assert(iob_addfile(b,fd,10,10));
|
||||
iob_send(1,b);
|
||||
}
|
Loading…
Reference in New Issue