Commit | Line | Data |
---|---|---|
4de89c11 MJ |
1 | /* |
2 | * SPDX-License-Identifier: GPL-2.0-or-later | |
3 | * | |
4 | * Copyright (C) 2022 Michael Jeanson <mjeanson@efficios.com> | |
5 | */ | |
6 | ||
7 | #include <stdio.h> | |
8 | ||
9 | #include "tap.h" | |
10 | ||
11 | #include "compat-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 | ||
da44a943 | 22 | #ifdef __linux__ |
4de89c11 MJ |
23 | ret = get_num_possible_cpus_fallback(); |
24 | ok(ret > 0, "get_num_possible_cpus_fallback (%d > 0)", ret); | |
da44a943 MJ |
25 | #else |
26 | skip(1, "Linux specific test."); | |
27 | #endif | |
4de89c11 MJ |
28 | |
29 | return exit_status(); | |
30 | } |