File: test_get_possible_cpus_array_len.c

package info (click to toggle)
ust 2.14.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,368 kB
  • sloc: xml: 78,798; ansic: 47,114; sh: 5,806; java: 2,202; makefile: 1,833; python: 727; cpp: 384
file content (26 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * SPDX-License-Identifier: LGPL-2.1-only
 *
 * Copyright (C) 2022 Michael Jeanson <mjeanson@efficios.com>
 */

#include <stdio.h>

#include "tap.h"

#include "common/smp.h"

int main(void)
{
	int ret;

	plan_tests(2);

	ret = get_possible_cpus_array_len();
	ok(ret > 0, "get_possible_cpus_array_len (%d > 0)", ret);

	ret = get_num_possible_cpus_fallback();
	ok(ret > 0, "get_num_possible_cpus_fallback (%d > 0)", ret);

	return exit_status();
}