From 037e68c9413441ab3b94092ba87102f8ab3fcf80 Mon Sep 17 00:00:00 2001
From: Brian Christiansen <brian@schedmd.com>
Date: Tue, 9 Jan 2018 12:21:24 -0700
Subject: [PATCH] Fix unit test from asserting

7d9a75dfadd uncovered that slurmdb_pack_assoc_usage() expects a usage
ptr.
---
 .../common/slurmdb_pack/pack_assoc_rec_with_usage-test.c        | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testsuite/slurm_unit/common/slurmdb_pack/pack_assoc_rec_with_usage-test.c b/testsuite/slurm_unit/common/slurmdb_pack/pack_assoc_rec_with_usage-test.c
index a2418676235..391f937141a 100644
--- a/testsuite/slurm_unit/common/slurmdb_pack/pack_assoc_rec_with_usage-test.c
+++ b/testsuite/slurm_unit/common/slurmdb_pack/pack_assoc_rec_with_usage-test.c
@@ -15,6 +15,8 @@ START_TEST(invalid_protocol)
 	uint32_t x;
 
 	slurmdb_assoc_rec_t *assoc_rec = xmalloc(sizeof(slurmdb_assoc_rec_t));
+	assoc_rec->usage = xmalloc(sizeof(slurmdb_assoc_usage_t));
+
 	Buf buf = init_buf(1024);
 
 	pack32(22, buf);
-- 
GitLab