mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
C API: update docs based on PR feedback
This commit is contained in:
parent
7c602d9f01
commit
c49b88b066
7 changed files with 18 additions and 12 deletions
|
@ -27,7 +27,7 @@ public:
|
|||
};
|
||||
~nix_api_store_test() override
|
||||
{
|
||||
nix_store_unref(store);
|
||||
nix_store_free(store);
|
||||
|
||||
for (auto & path : fs::recursive_directory_iterator(nixStoreDir)) {
|
||||
fs::permissions(path, fs::perms::owner_all);
|
||||
|
|
|
@ -69,7 +69,7 @@ TEST_F(nix_api_util_context, nix_store_open_dummy)
|
|||
nix_store_get_version(ctx, store, value, 256);
|
||||
ASSERT_STREQ("", value);
|
||||
|
||||
nix_store_unref(store);
|
||||
nix_store_free(store);
|
||||
}
|
||||
|
||||
TEST_F(nix_api_util_context, nix_store_open_invalid)
|
||||
|
@ -78,7 +78,7 @@ TEST_F(nix_api_util_context, nix_store_open_invalid)
|
|||
Store * store = nix_store_open(ctx, "invalid://", nullptr);
|
||||
ASSERT_EQ(NIX_ERR_NIX_ERROR, ctx->last_err_code);
|
||||
ASSERT_EQ(nullptr, store);
|
||||
nix_store_unref(store);
|
||||
nix_store_free(store);
|
||||
}
|
||||
|
||||
TEST_F(nix_api_store_test, nix_store_is_valid_path_not_in_store)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue