File: exit.t

package info (click to toggle)
criterion 2.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 3,864 kB
  • sloc: ansic: 17,945; cpp: 774; python: 74; makefile: 25; sh: 19
file content (37 lines) | stat: -rw-r--r-- 1,453 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
Testing tests that call exit()

  $ exit.c.bin --verbose
  \[----\] Criterion v.* (re)
  [====] Running 3 tests from exit:
  [RUN ] exit::expected_exit
  [PASS] exit::expected_exit
  [RUN ] exit::normal
  [PASS] exit::normal
  [RUN ] exit::unexpected_exit
  [FAIL] exit::unexpected_exit
  [====] Running 2 tests from exit_with_fixtures:
  [RUN ] exit_with_fixtures::fini_exits
  [PASS] exit_with_fixtures::fini_exits
  [----] Warning! The test `exit_with_fixtures::fini_exits` exited during its setup or teardown.
  [RUN ] exit_with_fixtures::init_exits
  [----] Warning! The test `exit_with_fixtures::init_exits` exited during its setup or teardown.
  [====] Synthesis: Tested: 5 | Passing: 3 | Failing: 2 | Crashing: 1 

  $ [ "$CXX_SUPPORT" = 1 ] || exit 80

  $ exit.cc.bin --verbose
  \[----\] Criterion v.* (re)
  [====] Running 3 tests from exit:
  [RUN ] exit::expected_exit
  [PASS] exit::expected_exit
  [RUN ] exit::normal
  [PASS] exit::normal
  [RUN ] exit::unexpected_exit
  [FAIL] exit::unexpected_exit
  [====] Running 2 tests from exit_with_fixtures:
  [RUN ] exit_with_fixtures::fini_exits
  [PASS] exit_with_fixtures::fini_exits
  [----] Warning! The test `exit_with_fixtures::fini_exits` exited during its setup or teardown.
  [RUN ] exit_with_fixtures::init_exits
  [----] Warning! The test `exit_with_fixtures::init_exits` exited during its setup or teardown.
  [====] Synthesis: Tested: 5 | Passing: 3 | Failing: 2 | Crashing: 1