~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to tests/unit/libcommon/test_get_possible_cpus_array_len.c

  • Committer: Mathieu Desnoyers
  • Author(s): Michael Jeanson
  • Date: 2022-07-29 14:33:10 UTC
  • Revision ID: git-v1:fb0f6ca9385e1813311cfd917c130b40bec04970
Add more unit tests for possible_cpus_array_len

Change-Id: If0b7fb9183936f00ac90349fb32f1db57f124602
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * SPDX-License-Identifier: LGPL-2.1-only
 
3
 *
 
4
 * Copyright (C) 2022 Michael Jeanson <mjeanson@efficios.com>
 
5
 */
 
6
 
 
7
#include <stdio.h>
 
8
 
 
9
#include "tap.h"
 
10
 
 
11
#include "common/smp.h"
 
12
 
 
13
int main(void)
 
14
{
 
15
        int ret;
 
16
 
 
17
        plan_tests(2);
 
18
 
 
19
        ret = get_possible_cpus_array_len();
 
20
        ok(ret > 0, "get_possible_cpus_array_len (%d > 0)", ret);
 
21
 
 
22
        ret = get_num_possible_cpus_fallback();
 
23
        ok(ret > 0, "get_num_possible_cpus_fallback (%d > 0)", ret);
 
24
 
 
25
        return exit_status();
 
26
}