1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test
David Steele ce55866714 Enforce non-null for most string options.
There have been a number of segfaults reported because a string option expected to be non-null was actually null. This is generally due to options that are expected to be set but are in fact optional.

Protect against this by creating cfgOptionStrNull() to get options that can be null, while changing cfgOptionStr() to always expect non-null. There are relatively few places where nulls are expected.

There is definitely a chance for breakage here as null options might currently be working in the field but will be caught by this new check. Hopefully introducing the check early in the release cycle will allow us to catch any issues.
2020-04-30 10:34:44 -04:00
..
certificate New test containers with static test certificates. 2018-11-21 18:13:37 -05:00
code-count v2.26: Non-blocking TLS 2020-04-20 15:44:31 -04:00
data Automate generation of WAL and pg_control test files. 2017-11-18 20:02:54 -05:00
expect Expire WAL archive only when repo-retention-archive threshold is met. 2020-04-29 08:06:49 -04:00
lib/pgBackRestTest Expire WAL archive only when repo-retention-archive threshold is met. 2020-04-29 08:06:49 -04:00
src Enforce non-null for most string options. 2020-04-30 10:34:44 -04:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
container.yaml Add lz4 compression support. 2020-03-10 14:45:27 -04:00
define.yaml Add --set option to the expire command. 2020-04-27 14:00:36 -04:00
test.pl Update RHEL package location (again). 2020-04-21 10:51:38 -04:00
travis.pl Update packages required for each CI job. 2020-03-26 22:20:09 -04:00
Vagrantfile Add Cirrus CI and Vagrant configuration for FreeBSD and MacOS. 2020-04-16 14:13:53 -04:00