|
Greenbone Vulnerability Management Libraries 22.32.0
|
#include "../util/fileutils.h"#include "pidfile.c"#include <cgreen/cgreen.h>#include <cgreen/mocks.h>#include <glib.h>#include <sys/stat.h>#include <unistd.h>
Go to the source code of this file.
Functions | |
| Describe (pidfile) | |
| BeforeEach (pidfile) | |
| AfterEach (pidfile) | |
| Ensure (pidfile, pidfile_create_returns_error_for_null_path) | |
| Ensure (pidfile, pidfile_create_creates_file_with_correct_pid) | |
| Ensure (pidfile, pidfile_create_creates_directory_if_needed) | |
| Ensure (pidfile, pidfile_create_returns_error_when_cannot_create_file) | |
| Ensure (pidfile, pidfile_remove_deletes_file_with_matching_pid) | |
| Ensure (pidfile, pidfile_remove_does_not_delete_file_with_different_pid) | |
| Ensure (pidfile, pidfile_remove_handles_nonexistent_file) | |
| int | main (int argc, char **argv) |
| AfterEach | ( | pidfile | ) |
Definition at line 20 of file pidfile_tests.c.
| BeforeEach | ( | pidfile | ) |
Definition at line 16 of file pidfile_tests.c.
| Describe | ( | pidfile | ) |
| Ensure | ( | pidfile | , |
| pidfile_create_creates_directory_if_needed | ) |
Definition at line 58 of file pidfile_tests.c.
References gvm_file_check_is_dir(), gvm_file_exists(), and pidfile_create().

| Ensure | ( | pidfile | , |
| pidfile_create_creates_file_with_correct_pid | ) |
Definition at line 31 of file pidfile_tests.c.
References gvm_file_exists(), and pidfile_create().

| Ensure | ( | pidfile | , |
| pidfile_create_returns_error_for_null_path | ) |
Definition at line 26 of file pidfile_tests.c.
References pidfile_create().

| Ensure | ( | pidfile | , |
| pidfile_create_returns_error_when_cannot_create_file | ) |
Definition at line 79 of file pidfile_tests.c.
References pidfile_create().

| Ensure | ( | pidfile | , |
| pidfile_remove_deletes_file_with_matching_pid | ) |
Definition at line 89 of file pidfile_tests.c.
References gvm_file_exists(), and pidfile_remove().

| Ensure | ( | pidfile | , |
| pidfile_remove_does_not_delete_file_with_different_pid | ) |
Definition at line 115 of file pidfile_tests.c.
References gvm_file_exists(), and pidfile_remove().

| Ensure | ( | pidfile | , |
| pidfile_remove_handles_nonexistent_file | ) |
Definition at line 144 of file pidfile_tests.c.
References gvm_file_exists(), and pidfile_remove().

| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 161 of file pidfile_tests.c.