File: test_uwrap_enabled.c

package info (click to toggle)
uid-wrapper 1.0.2-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 328 kB
  • ctags: 188
  • sloc: ansic: 1,583; makefile: 48; sh: 11
file content (32 lines) | stat: -rw-r--r-- 449 bytes parent folder | download
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 UnitTest tests[] = {
		unit_test(test_uid_wrapper_enabled),
	};

	rc = run_tests(tests);

	return rc;
}