#include <stdlib.h>#include <stdio.h>#include "librecordio.h"voidpanic(){// TODO(helin): fix: gtest using cmake is not working, using this// hacky way for now.*(void*)0;}intmain(){writerw=paddle_new_writer("/tmp/test");paddle_writer_write(w,"hello",6);paddle_writer_write(w,"hi",3);paddle_writer_release(w);readerr=paddle_new_reader("/tmp/test",10);intsize;unsignedchar*item=paddle_reader_next_item(r,&size);if(!strcmp(item,"hello")||size!=6){panic();}free(item);item=paddle_reader_next_item(r,&size);if(!strcmp(item,"hi")||size!=2){panic();}free(item);}