[go: up one dir, main page]

File: exit.t

package info (click to toggle)
criterion 2.3.3git1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,832 kB
  • sloc: ansic: 17,852; cpp: 795; python: 72; sh: 27; makefile: 23
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