summaryrefslogtreecommitdiff
path: root/src/test/test-strv.c
Commit message (Collapse)AuthorAge
* tests: add tests for strv_extendfRonny Chevalier2014-06-19
|
* strv: multiple cleanupsSimon Peeters2014-01-05
| | | | | | | | | | - turn strv_merge into strv_extend_strv. appending strv b to the end of strv a instead of creating a new strv - strv_append: remove in favor of strv_extend and strv_push. - strv_remove: write slightly more elegant - strv_remove_prefix: remove unused function - strv_overlap: use strv_contains - strv_printf: STRV_FOREACH handles NULL correctly
* scan-build: silence some warningsThomas Hindoe Paaboel Andersen2013-12-12
| | | | | | | | | test-fileio/test-strv: Use the streq_ptr to make build-scan not worry about passing in a null to a nonnull function. test-dhcp-option: Prevent a theoretical null pointer dereference
* util: fix handling of trailing whitespace in split_quoted()Lennart Poettering2013-11-28
| | | | Inspired by a patch by Lukas Nykryn.
* test-strv: add strv_split, strv_split_newline, strv_remove_prefixDaniel Buch2013-11-07
|
* strv: introduce new STRV_MAKE and STRV_MAKE_EMPTY macros to create string ↵Lennart Poettering2013-10-29
| | | | arrays nicely on the fly
* strv: introduce new strv_from_stdarg_alloca() macro to generate a string ↵Lennart Poettering2013-10-29
| | | | | | | array from stdarg function parameters This allows us to turn lists of strings passed in easily into string arrays without having to allocate memory.
* test-strv.c: added STRV_FOREACH and STRV_FOREACH_BACKWARDSDaniel Buch2013-10-27
|
* tmpfiles: support simple specifier expansion for specified pathsLennart Poettering2013-09-17
|
* specifier: rework specifier calls to return proper error messageLennart Poettering2013-09-17
| | | | | | Previously the specifier calls could only indicate OOM by returning NULL. With this change they will return negative errno-style error codes like everything else.
* systemd-run: properly escape argumentsZbigniew Jędrzejewski-Szmek2013-09-09
| | | | | | | Spaces, quotes, and such, were not properly escaped. We should write them like we read them. https://bugs.freedesktop.org/show_bug.cgi?id=67971
* test-strv: do not declare table to be sorted constZbigniew Jędrzejewski-Szmek2013-04-05
| | | | Segmentation fault under clang.
* test-strv.c: test STRV_FOREACH_PAIR macroDaniel Buch2013-03-18
|
* test-strv.c: ported test_specifier_printf() to _cleanup_free_ + assert_se + ↵Daniel Buch2013-02-18
| | | | cleanup
* test-strv.c: added OOM check for current testsDaniel Buch2013-02-18
| | | | | | New OOM check patch: I do assert_se() before variable is used to do correct check.
* test-strv.c: added strv_split_nulstr() testDaniel Buch2013-02-18
|
* test-strv.c: Changed assert() to assert_se()Daniel Buch2013-02-13
| | | | test-strv.c: Indent fix
* test-strv.c: added strv_append testDaniel Buch2013-02-13
|
* test-strv.c: added strv_merge_concat testDaniel Buch2013-02-13
|
* test-strv.c: added strv_merge testDaniel Buch2013-02-13
|
* tests: move strv_parse_nulstr to test-strv, and actually test itThomas Hindoe Paaboel Andersen2013-02-07
| | | | | The test was originally added with this commit message: "ask-password: supported plymouth cached passwords"
* test: add a few tests and tidy upThomas Hindoe Paaboel Andersen2013-02-06
| | | | | | | | | | | | | | adds test of: strv_find strv_find_prefix strv_overlap strv_sort streq_ptr first_word Splits tests of util.c into own file to avoid clutter as we add more. Removed a few prints and uses _cleanup_free_ to make the tests more focused.
* test-strv.c: test strv_join addedDaniel Buch2013-01-30
|
* test-strv.c: Split tests into seperate functionsDaniel Buch2013-01-30
| | | | test-strv.c: Leaves main clean for additional tests
* test: test tools should still be in the src/ directoryLennart Poettering2012-04-12