/* test ... camelseekablesubstream */ #include "camel-test.h" #include "streams.h" #include #include #include #include "camel/camel-stream-mem.h" #include "camel/camel-stream-fs.h" #include "camel/camel-seekable-substream.h" #define ARRAY_LEN(x) (sizeof(x)/sizeof(x[0])) struct { off_t lower, upper; } ranges[] = { { 3, 10241 }, { 0, 1024 }, { 0, 0 }, { 0, 1 }, { 0, 2 }, { 0, 3 }, { 0, 7 }, { 1, 8 }, { 1, 9 }, { 10245, 10300 }, { 0, CAMEL_STREAM_UNBOUND }, /* { 1, CAMEL_STREAM_UNBOUND }, { 2, CAMEL_STREAM_UNBOUND }, { 3, CAMEL_STREAM_UNBOUND }, these take too long to run { 7, CAMEL_STREAM_UNBOUND },*/ { 10245, CAMEL_STREAM_UNBOUND }, }; int main(int argc, char **argv) { CamelSeekableStream *ss = NULL; int i, j; CamelSeekableSubstream *sus, *sus2; camel_test_init(argc, argv); camel_test_start("CamelSeekableSubstream, mem backing"); for (j=0;j