~emersion/basu

4277dfe8077cb088c6fe1ca8dbb478f9c5433423 — Jan Beich 2 years ago 8cd2205
test: switch to getprogname on FreeBSD

`program_invocation_short_name` is an alias for `__progname` in glibc.
FreeBSD also has `__progname` defined by startup code but (like `environ`)
it's not declared in any system header. Consumers are encouraged to
use `getprogname()` instead.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/test/tests.c
M src/test/tests.c => src/test/tests.c +1 -1
@@ 7,7 7,7 @@
#include "tests.h"

#ifdef __FreeBSD__
const char *program_invocation_short_name = "unknown";
#define program_invocation_short_name getprogname()
#endif

void test_setup_logging(int level) {