| 1 | #cxx . . $ `<file>/tests/ignore_messages_tests.c`/include <cgreen/cgreen.h>cxx . . $ `<file>/include/cgreen/cgreen.h`/ |
| 2 | |
| 3 | #include <stdio.h> |
| 4 | #include <stdlib.h> |
| 5 | #include <unistd.h> |
| 6 | #include <signal.h> |
| 7 | #ifdef HAVE_SYS_RESOURCE_Hcxx . . $ `<built-in>:410:9`! |
| 8 | #include <sys/resource.h> |
| 9 | #endif |
| 10 | |
| 11 | #ifdef __cplusplus |
| 12 | using namespace cgreen; |
| 13 | #endif |
| 14 | |
| 15 | Describecxx . . $ `include/cgreen/unit.h:12:9`!(IgnoreMessage); |
| 16 | BeforeEachcxx . . $ `include/cgreen/unit.h:15:9`!(IgnoreMessage) {} |
| 17 | AfterEachcxx . . $ `include/cgreen/unit.h:18:9`!(IgnoreMessage) {} |
| 18 | |
| 19 | Ensurecxx . . $ `include/cgreen/unit.h:25:9`!(IgnoreMessage, should_not_count_empty_tests_as_ignored) { |
| 20 | } |
| 21 | |
| 22 | Ensurecxx . . $ `include/cgreen/unit.h:25:9`!(IgnoreMessage, should_not_count_passing_tests_as_ignored) { |
| 23 | assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!); |
| 24 | } |
| 25 | |
| 26 | Ensurecxx . . $ `include/cgreen/unit.h:25:9`!(IgnoreMessage, should_not_count_failing_tests_as_ignored) { |
| 27 | assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!); |
| 28 | } |
| 29 | |
| 30 | Ensurecxx . . $ `include/cgreen/unit.h:25:9`!(IgnoreMessage, should_not_count_exceptions_as_ignored) { |
| 31 | #ifdef HAVE_SYS_RESOURCE_Hcxx . . $ `<built-in>:410:9`! |
| 32 | struct rlimitcxx . . $ rlimit# core_limit; |
| 33 | core_limit.rlim_curcxx . . $ rlimit#rlim_cur. = 1U; |
| 34 | core_limit.rlim_maxcxx . . $ rlimit#rlim_max. = 1U; |
| 35 | setrlimitcxx . . $ setrlimit(dd6e4620e125bc7d).(RLIMIT_COREcxx . . $ `<external>/1890803886155400780/resource.h:51:9`!, &core_limit); |
| 36 | #endif |
| 37 | raisecxx . . $ raise(7864480464b09eea).(SIGSEGVcxx . . $ `<external>/11773118241360591791/signum-generic.h:52:9`!); |
| 38 | } |
| 39 | |
| 40 | xEnsurecxx . . $ `include/cgreen/unit.h:28:9`!(IgnoreMessage, should_present_this_as_ignored) { |
| 41 | fail_testcxx . . $ `include/cgreen/assertions.h:34:9`!("Should not be run since it's inside an ignored test"); |
| 42 | } |