Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-09-30 | test-path-util: fix a mem leak and avoid confusing coverity | Thomas Hindoe Paaboel Andersen | |
Found with coverity. Fixes CID#1237754 and #1237790 | |||
2014-08-26 | test-path-util: use assert_se in all assertions | Filipe Brandenburger | |
Otherwise they get optimized out when CPPFLAGS='-DNDEBUG' is used, and that causes the tests to fail. Tested: - make check TESTS='test-path-util' CPPFLAGS='-DNDEBUG' | |||
2014-07-26 | Add utility function to append root to path | Zbigniew Jędrzejewski-Szmek | |
2014-06-22 | consistently order cleanup attribute before type | Thomas Hindoe Paaboel Andersen | |
2014-06-20 | test: unit test for using alternate roots with path_strv_resolve | Michael Marineau | |
2014-05-25 | test-path-util: add tests for path_make_relative() | Tanu Kaskinen | |
2014-04-16 | test-path-util: fix running with separate build dir | Zbigniew Jędrzejewski-Szmek | |
test-path-utils attempts to find itself, but if the binary is not in current directory, the test would fail. | |||
2014-04-12 | path-util: also check for existence of binary when given absolute path | Zbigniew Jędrzejewski-Szmek | |
In contrast to a filename-only argument, find_binary() did not actually check if an path exists, allowing the code to fail later on. This was OK, but it seems nicer to treat both paths identically. Also take advantage of path_make_absolute_cwd doing strdup() by itself if necessary to simplify. | |||
2014-04-12 | fsck: Search for fsck.type in PATH | Mike Gilbert | |
Modifies find_binary() to accept NULL in the second argument. fsck.type lookup logic moved to new fsck_exists() function, with a test. | |||
2013-12-06 | Get rid of our reimplementation of basename | Zbigniew Jędrzejewski-Szmek | |
The only problem is that libgen.h #defines basename to point to it's own broken implementation instead of the GNU one. This can be fixed by #undefining basename. | |||
2013-09-26 | util: properly handle the root dir in PATH_FOREACH_PREFIX | Lennart Poettering | |
Also add PATH_FOREACH_PREFIX_MORE which includes the specified dir itself in the iteration | |||
2013-09-25 | util: add macro for iterating through all prefixes of a path | Lennart Poettering | |
Syntactic sugar in a macro PATH_FOREACH_PREFIX. | |||
2013-09-09 | run: allow non-absolute paths as command | Zbigniew Jędrzejewski-Szmek | |
2013-07-12 | test-path-util,test-sched-prio: uninitialize manager to appease valgrind | Zbigniew Jędrzejewski-Szmek | |
2013-03-29 | test-path-util: fix another stupid test failure | Zbigniew Jędrzejewski-Szmek | |
2013-03-29 | test-path-util: fix botched test | Zbigniew Jędrzejewski-Szmek | |
2013-03-28 | tests: add some silly tests for path-util.c | Zbigniew Jędrzejewski-Szmek | |