]> Kevux Git Server - fll/commit
Update: Add unit tests for f_environment, make changes to f_environment, and add...
authorKevin Day <thekevinday@gmail.com>
Fri, 22 Apr 2022 04:09:50 +0000 (23:09 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 22 Apr 2022 04:14:14 +0000 (23:14 -0500)
commit9ba999a535b32a0b344ae7f5f0fd40f0eb565562
treee290f4beea086d3d3c72f430ec881a01e2770b8f
parent3870e7522c466a9143677307a4b4945cecdc6576
Update: Add unit tests for f_environment, make changes to f_environment, and add new function f_environment_secure_is().

Add the unit tests for f_environment.

The new function f_environment_secure_is() brings in libcap dependency requirements to f_environment.
This is added to add support for something similar to secure_getenv() rather than wrapping a non-standard method.
I am still not very experience with capabilities and do not guarantee an accurate replacement for secure_getenv().

Replace F_valid_not error returns with F_parameter error returns.
24 files changed:
level_0/f_environment/c/environment.c
level_0/f_environment/c/environment.h
level_0/f_environment/data/build/defines
level_0/f_environment/data/build/dependencies-tests [new file with mode: 0644]
level_0/f_environment/data/build/settings
level_0/f_environment/data/build/settings-mocks [new file with mode: 0644]
level_0/f_environment/data/build/settings-tests [new file with mode: 0644]
level_0/f_environment/data/build/testfile [new file with mode: 0644]
level_0/f_environment/tests/unit/c/mock-environment.c [new file with mode: 0644]
level_0/f_environment/tests/unit/c/mock-environment.h [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-clear.c [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-clear.h [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-exists.c [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-exists.h [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-get.c [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-get.h [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-secure_is.c [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-secure_is.h [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-set.c [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-set.h [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-unset.c [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment-unset.h [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment.c [new file with mode: 0644]
level_0/f_environment/tests/unit/c/test-environment.h [new file with mode: 0644]