Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Raab <markus2330@users.noreply.github.com>
  • Loading branch information
mpranj and markus2330 authored Jul 7, 2021
1 parent b8e7e83 commit 821de44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions doc/news/_preparation_next_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ you up to date with the multi-language support provided by Elektra.
- <<TODO>>
- Upgrade GoogleTest frameworks to version 1.11.0. _(Mihael Pranjić)_
- Add additional test cases for module `keyname` _(@lawli3t)_
- Fix failing `testshell_markdown_tutorial_crypto` on Mac OS and other OS with GnuPG version >= 2.3.1. _(Peter Nirschl @petermax2)_
- Use clang-format 12 for Restyled and update Restyled version. _(Mihael Pranjić)_
- Update all Restyled formatters to current versions. _(Mihael Pranjić)_
- Add tests for module keyset _(@lawli3t)_
- <<TODO>>
- <<TODO>>
Expand Down
5 changes: 3 additions & 2 deletions tests/abi/testabi_ks.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ static void test_ksCopy (void)
succeed_if (ksAppendKey (ks, keyNew ("user:/test2", KEY_END)) == 3, "could not append a key");
succeed_if (ksAppendKey (ks, keyNew ("user:/test3", KEY_END)) == 4, "could not append a key");
succeed_if (ksCopy (0, ks) == -1, "No error on NULL pointer");
succeed_if (ksCopy (ks, 0) == 0, "Deleted ks");
succeed_if (ksGetSize (ks) == 0, "ks has no keys");
succeed_if (ksCopy (ks, 0) == 0, "Could not delete ks with ksCopy");
succeed_if (ksGetSize (ks) == 0, "ks has keys after deleting with ksCopy");
ksDel (ks);

other = ksNew (0, KS_END);
Expand Down Expand Up @@ -2781,6 +2781,7 @@ static void test_simpleLookup (void)
succeed_if_same_string (keyString (returnedKey), keyString (dup));
succeed_if (ksGetSize (ks) == 1, "key deleted from keyset");

keyDel (searchKey);
ksDel (ks);
}

Expand Down

0 comments on commit 821de44

Please sign in to comment.