summaryrefslogtreecommitdiff
path: root/tests/lib/test_timer_correctness.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-05-02 13:00:47 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-05-02 13:00:47 -0400
commitb7597a8532e55734608bdefb92475bac43a4c846 (patch)
tree8c59a86011f06378148d65b8351026455825a55f /tests/lib/test_timer_correctness.c
parentde416e6782592799df6b43e9d2084e24d05fa206 (diff)
tests: Use XCALLOC instead of XMALLOC for threads
Someone decided to do malloc testing over make check. Fixes: #11120 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/lib/test_timer_correctness.c')
-rw-r--r--tests/lib/test_timer_correctness.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/test_timer_correctness.c b/tests/lib/test_timer_correctness.c
index 4172ca3001..475fabd2d7 100644
--- a/tests/lib/test_timer_correctness.c
+++ b/tests/lib/test_timer_correctness.c
@@ -122,7 +122,7 @@ int main(int argc, char **argv)
prng = prng_new(0);
- timers = XMALLOC(MTYPE_TMP, SCHEDULE_TIMERS * sizeof(*timers));
+ timers = XCALLOC(MTYPE_TMP, SCHEDULE_TIMERS * sizeof(*timers));
for (i = 0; i < SCHEDULE_TIMERS; i++) {
long interval_msec;
@@ -159,7 +159,7 @@ int main(int argc, char **argv)
* representing the expected "output" of the timers when they
* are run. */
j = 0;
- alarms = XMALLOC(MTYPE_TMP, timers_pending * sizeof(*alarms));
+ alarms = XCALLOC(MTYPE_TMP, timers_pending * sizeof(*alarms));
for (i = 0; i < SCHEDULE_TIMERS; i++) {
if (!timers[i])
continue;