[go: up one dir, main page]

File: fixtures.cc

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 (16 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <criterion/criterion.h>
#include <stdio.h>

void setup(void)
{
    puts("Runs before the test");
}

void teardown(void)
{
    puts("Runs after the test");
}

Test(simple, fixtures, .init = setup, .fini = teardown) {
    cr_assert(1);
}