OpenVPN
test_skip.c
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <stdarg.h>
18 #include <stddef.h>
19 #include <setjmp.h>
20 #include <cmocka.h>
21 
22 /* A test case that does check if an int is equal. */
23 static void test_check_skip(void **state) {
24  (void)state; /* unused */
25 
26  skip();
27 
28  assert_true(0);
29 }
30 
31 
32 int main(void) {
33  const struct CMUnitTest tests[] = {
35  };
36 
37  return cmocka_run_group_tests(tests, NULL, NULL);
38 }
39 
#define assert_true(c)
Definition: cmocka.h:1045
#define cmocka_unit_test(f)
Initializes a CMUnitTest structure.
Definition: cmocka.h:1653
static void test_check_skip(void **state)
Definition: test_skip.c:23
int main(void)
Definition: test_skip.c:32
#define skip()
Definition: cmocka.h:1540
#define cmocka_run_group_tests(group_tests, group_setup, group_teardown)
Definition: cmocka.h:1749