summaryrefslogtreecommitdiff
path: root/tests/test-keyfile-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* lib/keyfile: Treat "group not found" the same as "key not found"Colin Walters2019-11-071-13/+13
| | | | | | | Prep for fsverity, where I want to create a new group `[fsverity]` in the keyfile that has default values. We should treat the absence of a group the same as absence of a key in these "with defaults" APIs.
* tests: Port keyfile test to new styleColin Walters2019-10-181-9/+6
| | | | Just noticed in passing.
* tree-wide: [scan-build] Fix some dead storesColin Walters2019-10-181-4/+2
| | | | No real issues, just quieting the scanner.
* libotutil: Add ot_keyfile_get_value_with_default_group_optional()Robert Fairley2019-03-011-6/+70
| | | | | | | | | | Add ot_keyfile_get_value_with_default_group_optional() which allows getting values from keys where the group is optional in the config file. This is preparatory to add the sysroot.bootloader repo config key, where the sysroot group is optional. Closes: #1814 Approved by: jlebon
* Add SPDX-License-Identifier to source filesMarcus Folkesson2018-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | SPDX License List is a list of (common) open source licenses that can be referred to by a “short identifier”. It has several advantages compared to the common "license header texts" usually found in source files. Some of the advantages: * It is precise; there is no ambiguity due to variations in license header text * It is language neutral * It is easy to machine process * It is concise * It is simple and can be used without much cost in interpreted environments like java Script, etc. * An SPDX license identifier is immutable. * It provides simple guidance for developers who want to make sure the license for their code is respected See http://spdx.org for further reading. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Closes: #1439 Approved by: cgwalters
* tree-wide: Remove Emacs modelinesColin Walters2017-09-211-2/+1
| | | | | | | | | We added a `.dir-locals.el` in commit: 9a77017d87b74c5e2895cdd64ad098018929403f There's no need to have it per-file, with that people might think to add other editors, which is the wrong direction. Closes: #1206 Approved by: jlebon
* tests/keyfile-utils: Drop tests covering preconditionsColin Walters2016-12-061-31/+0
| | | | | | | | | | | | The spam in stderr was bothering me, and further at some eventual point in the future we want to annotate the functions with `__attribute__((nonnull))` which would then cause tests like these to become undefined behavior. The coverage of this isn't worth the log spam basically. Closes: #611 Approved by: jlebon
* [ASAN] tests: Fix leaksColin Walters2016-11-301-3/+14
| | | | | | | Just for cleaner sanitizer output. Closes: #598 Approved by: jlebon
* Remove unnecessary #include "libgsystem.h"Matthew Barnes2015-05-061-1/+0
|
* Use g_auto(GStrv) instead of gs_strfreevMatthew Barnes2015-05-061-2/+2
|
* Use g_autofree instead of gs_freeMatthew Barnes2015-05-061-2/+2
|
* Juggling libglnx.h includesMatthew Barnes2015-05-061-0/+1
|
* keyfile-utils: add testsGiuseppe Scrivano2015-03-061-0/+220
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>