- 07 Jan, 2011 1 commit
-
-
Rusty Russell authored
Useful routine to count number of matches in a string.
-
- 06 Jan, 2011 1 commit
-
-
Rusty Russell authored
-
- 07 Jan, 2011 10 commits
-
-
Rusty Russell authored
A bit more awkward, but more consistent with everything else.
-
Rusty Russell authored
Since test keys are used for --target=, this is useful.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
Joey Adams also pointed out that we should use strings for the dependency lists. Moving them into the structure also somewhat simplifies it.
-
Rusty Russell authored
Joey Adams rightly points out that the current keys are a mess: ideally the filenames, test keys and structure names in ccanlint should be the same. First step is to make the test names all regular, of basic form <noun>_<verb> (eg "tests_exist" rather than "has-tests").
-
Rusty Russell authored
-
Joey Adams authored
This option prints the dependency graph of ccanlint's tests in Graphviz .dot format. Sample usage: ccanlint --test-dep-graph | dot -Tpng > out.png && eog out.png
-
Joey Adams authored
These tests: "depends-exist" (compulsory_tests/check_depends_exist.c) "info-documentation" (tests/has_info_documentation.c) used m->info_file without checking if it was NULL, leading to a segfault when no _info file was present. Some other tests also used m->info_file without depending on "info", but are taken care of indirectly by this patch.
-
Joey Adams authored
&*ptr is used in some other macros, but at a glance, they look like cases where the pointer shouldn't be NULL . Didn't change those, and if we get more warnings, we'll cross that bridge when we get to it. For now, I suppose they are just free NULL checks.
-
- 06 Jan, 2011 5 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
The parenthesized thing is confusing and ccanlint dislikes it.
-
Rusty Russell authored
There are a large number of BSD variants out there, be explicit.
-
Rusty Russell authored
-
- 04 Jan, 2011 4 commits
-
-
Rusty Russell authored
The upcoming failtest module can only tell that a child failed when it exits with a non-zero error. So we need this, although it means for ccanlint it still needs to look at output to distinguish a memory leak from a real error.
-
Rusty Russell authored
If an example #includes <ccan/foo/...> we assume it needs module foo, but we would fail instead of building it if it isn't built.
-
Rusty Russell authored
As we start doing more building of dependencies, this saves us effort.
-
Rusty Russell authored
-
- 01 Jan, 2011 9 commits
-
-
Rusty Russell authored
I chose not to do the "macro creates set of routines" approach, as we can be almost as safe with a struct containing a pointer to the member type.
-
Rusty Russell authored
I find hiding the declaration in LIST_HEAD() a bit weird.
-
Rusty Russell authored
In particular, we test the corruption cases.
-
Rusty Russell authored
Deletion from a specific list.
-
Rusty Russell authored
-
Rusty Russell authored
When CCAN_LIST_DEBUG was defined, we were previously calling list_check() in list_del instead of list_check_node(), which caused a warning. We also should stick within the "list_" prefix namespace, so rename "debug_list" to "list_debug".
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
- 23 Dec, 2010 4 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
We lose the histograms, but this prepares it for upstream merge.
-
Rusty Russell authored
One free record is not "uncoalesced".
-
Rusty Russell authored
Remove code duplication, and allow unit tests (which #include both).
-
- 16 Dec, 2010 1 commit
-
-
Rusty Russell authored
Test compiled with warnings: /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:/home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c: In function ‘main’: /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’ /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’ /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’ /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’ /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’ /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’ /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’ /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:19:2: warning: taking address of expression of type ‘void’
-
- 13 Dec, 2010 4 commits
-
-
Rusty Russell authored
If they specify valgrind options in their _info, we should use them when running with --db-attach=yes, too.
-
Rusty Russell authored
This is complicated by valgrind's limited options, and our desire not to run valgrind twice (it's already the slowest part of the tests). Ideally I'd like a different error code for each kind of error. I could parse and pretty-print the XML output, but instead I just parse the human-readable (which is fragile).
-
Rusty Russell authored
-
Rusty Russell authored
It requires that we build the objects first.
-
- 08 Dec, 2010 1 commit
-
-
Rusty Russell authored
-