From f2b2337a31c8e9e89085ed9d123d743e976ba85b Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sun, 12 Jan 2025 07:17:06 -0700 Subject: buffer: drop buffer_move function --- test/core/buffer-test.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'test') diff --git a/test/core/buffer-test.c b/test/core/buffer-test.c index 72aff97..269f792 100644 --- a/test/core/buffer-test.c +++ b/test/core/buffer-test.c @@ -54,12 +54,7 @@ int main(int argc, char *argv[]) { ok(buffer_append(&buf, "\0baz", 4) && compare(&buf, "foo\0bar\0baz", 11), "Append data"); ok(buffer_grow(&buf, cap+1) && compare(&buf, "foo\0bar\0baz", 11) && buf.size >= cap+1, "Grow"); - - const char *content = buf.data; - char *data = buffer_move(&buf); - ok(data == content && buf.len == 0 && buf.size == 0 && buf.data == NULL, "Move"); - ok(buffer_append0(&buf, "foo") && buf.data != data, "Modify after move"); - free(data); + buf.len = 0; skip_if(TIS_INTERPRETER, 1, "vsnprintf not supported") { -- cgit v1.2.3