File: test_uwrap_enabled.c

package info (click to toggle)
uid-wrapper 1.2.4%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 476 kB
  • sloc: ansic: 5,244; makefile: 48; sh: 11
file content (32 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (5)
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
27
28
29
30
31
32
#include "config.h"

#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>

#include <stdbool.h>

bool uid_wrapper_enabled(void);

static void test_uid_wrapper_enabled(void **state)
{
    bool ok;

    (void)state; /* unused */

    ok = uid_wrapper_enabled();
    assert_true(ok);
}

int main(void) {
	int rc;

	const struct CMUnitTest tests[] = {
		cmocka_unit_test(test_uid_wrapper_enabled),
	};

	rc = cmocka_run_group_tests(tests, NULL, NULL);

	return rc;
}