fix json test. our fault, not the fault of storage

This commit is contained in:
Enno Rehling 2014-11-04 07:50:33 +01:00
parent 4081480e4a
commit 8912a59ac4
2 changed files with 4 additions and 2 deletions

View File

@ -107,12 +107,14 @@ static void test_export_no_factions(CuTest * tc) {
char buf[1024];
stream out = { 0 };
int err;
size_t len;
mstream_init(&out);
err = json_export(&out, EXPORT_FACTIONS);
CuAssertIntEquals(tc, 0, err);
out.api->rewind(out.handle);
out.api->read(out.handle, buf, sizeof(buf));
len = out.api->read(out.handle, buf, sizeof(buf));
buf[len]=0;
CuAssertStrEquals(tc, "{}", strip(buf));
mstream_done(&out);
}

@ -1 +1 @@
Subproject commit 746d96d405ddebcf6c882d5b198fd96df82abe11
Subproject commit 6acf2b4fec360d7f681275ea3be77002fd2573c7