- 17 Jan, 2011 3 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
Makes reporting of documentation easier.
-
Brad Hards authored
-
- 13 Jan, 2011 1 commit
-
-
Rusty Russell authored
It in fact takes an object and a key to compare, not two keys. The test case had the key as first element of the object, so it worked, but ccanlint lost track of module dependencies due to this bug, and thus would build submodules multiple times.
-
- 10 Jan, 2011 10 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
It leads to a memory leak if the allocation fails (as we reparent onto NULL). Also, the extra allocation in the failure path increases test time for failtest (under valgrind) by a factor of 2.
-
Rusty Russell authored
Unfortunately this means we have to reduce run-many from 1000 nodes to 100 (as forking under valgrind is really slow: test takes about 2 minutes with 100 nodes).
-
Rusty Russell authored
The data is not made a child of the tree: the nodes are made children of the data. So we must explicitly free the data objects.
-
Rusty Russell authored
This covers more code than simply doing an ordered delete/insert.
-
Rusty Russell authored
This allows us to both allocators which handle failure themselves, and allocators which insert failures.
-
Rusty Russell authored
(Import from SAMBA commit 6f51a1f45bf4de062cce7a562477e8140630a53d): this is the minimal fix for the problem Rusty found. I previously thought that the best fix would be to change tc->parent to be valid for all pointers, but that is expensive for realloc with large numbers of child pointers, which is much more commmon than I expected it to be.
-
Rusty Russell authored
-
Rusty Russell authored
A module designed to help test "never fails" functions like malloc.
-
Rusty Russell authored
This is useful for failtest, so we can abort on first failure.
-
- 09 Jan, 2011 1 commit
-
-
Rusty Russell authored
-
- 08 Jan, 2011 5 commits
-
-
Rusty Russell authored
Don't count examples which didn't compile (expected, as we mangle them in various different ways).
-
Rusty Russell authored
-
Rusty Russell authored
Makes it simpler and clearer.
-
Rusty Russell authored
Good for testing ccanlint changes.
-
Rusty Russell authored
Useful wrapper for extended POSIX regular expressions.
-
- 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 3 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.
-