Travis: Unbreak the builds.

In the hopes of future-proofing as much as possible, jump to the latest
distribution Travis supports.
This commit is contained in:
David Goldblatt
2021-06-21 14:07:10 -07:00
committed by David Goldblatt
parent 4fb93a18ee
commit 0689448b1e
8 changed files with 87 additions and 151 deletions

View File

@@ -581,5 +581,3 @@ test_status_t p_test_no_malloc_init(test_t *t, ...);
void p_test_init(const char *name);
void p_test_fini(void);
void p_test_fail(const char *prefix, const char *message);
void strncpy_cond(void *dst, const char *src, bool cond);

View File

@@ -232,16 +232,3 @@ p_test_fail(const char *prefix, const char *message) {
malloc_cprintf(NULL, NULL, "%s%s\n", prefix, message);
test_status = test_status_fail;
}
void
strncpy_cond(void *dst, const char *src, bool cond) {
if (cond) {
/*
* Avoid strcpy and explicitly set length to 0 because the
* `stringop-overflow` check may warn even if the specific test
* is unreachable.
*/
size_t n = cond ? strlen(src) + 1 : 0;
strncpy(dst, src, n);
}
}

View File

@@ -473,8 +473,8 @@ static void
expect_iter_results_at(fb_group_t *fb, size_t nbits, size_t pos,
bool val, bool forward) {
bool iter_res;
size_t iter_begin;
size_t iter_len;
size_t iter_begin JEMALLOC_CC_SILENCE_INIT(0);
size_t iter_len JEMALLOC_CC_SILENCE_INIT(0);
if (val) {
if (forward) {
iter_res = fb_srange_iter(fb, nbits, pos,

View File

@@ -4,7 +4,7 @@
static void
update_log_var_names(const char *names) {
strncpy_cond(log_var_names, names, config_log);
strncpy(log_var_names, names, sizeof(log_var_names));
}
static void