mirror of https://github.com/yandex/odyssey.git
machinarium: add consistency read check for large buffers
This commit is contained in:
parent
a33289b749
commit
bb28016237
|
@ -72,6 +72,12 @@ client(void *arg)
|
|||
rc = machine_read(client, buf, 10 * 1024 * 1024, UINT32_MAX);
|
||||
test(rc == 0);
|
||||
|
||||
char *buf_cmp = malloc(10 * 1024 * 1024);
|
||||
test(buf_cmp != NULL);
|
||||
memset(buf_cmp, 'x', 10 * 1024 * 1024);
|
||||
test(memcmp(buf_cmp, buf, 10 * 1024 * 1024) == 0 );
|
||||
free(buf_cmp);
|
||||
|
||||
free(buf);
|
||||
|
||||
rc = machine_close(client);
|
||||
|
|
Loading…
Reference in New Issue