git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
39f561c81ad3fd02f4954cb5470ecdca1a9d1eed blob 739 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
/*
Copyright 2020 Google LLC

Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#include "strbuf.h"

#include "system.h"

#include "basics.h"
#include "test_framework.h"
#include "reftable-tests.h"

static void test_strbuf(void)
{
	struct strbuf s = STRBUF_INIT;
	struct strbuf t = STRBUF_INIT;

	strbuf_addstr(&s, "abc");
	assert(0 == strcmp("abc", s.buf));

	strbuf_addstr(&t, "pqr");
	strbuf_addbuf(&s, &t);
	assert(0 == strcmp("abcpqr", s.buf));

	strbuf_release(&s);
	strbuf_release(&t);
}

int strbuf_test_main(int argc, const char *argv[])
{
	add_test_case("test_strbuf", &test_strbuf);
	return test_main(argc, argv);
}
debug log:

solving 39f561c81a ...
found 39f561c81a in https://public-inbox.org/git/570a8c4bcac54295865ee0fc4514073b59725511.1600283416.git.gitgitgadget@gmail.com/ ||
	https://public-inbox.org/git/4190da597e65bce072fa3c37c9410a56def4b489.1601568663.git.gitgitgadget@gmail.com/

applying [1/2] https://public-inbox.org/git/570a8c4bcac54295865ee0fc4514073b59725511.1600283416.git.gitgitgadget@gmail.com/
diff --git a/reftable/strbuf_test.c b/reftable/strbuf_test.c
new file mode 100644
index 0000000000..39f561c81a

Checking patch reftable/strbuf_test.c...
Applied patch reftable/strbuf_test.c cleanly.

skipping https://public-inbox.org/git/4190da597e65bce072fa3c37c9410a56def4b489.1601568663.git.gitgitgadget@gmail.com/ for 39f561c81a
index at:
100644 39f561c81ad3fd02f4954cb5470ecdca1a9d1eed	reftable/strbuf_test.c

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).