source: mainline/uspace/lib/pcut/tests/printing.c@ d7f7a4a

Last change on this file since d7f7a4a was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 4 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 459 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2013 Vojtech Horky
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <pcut/pcut.h>
8#include "tested.h"
9#include <stdio.h>
10
11PCUT_INIT
12
13PCUT_TEST(print_to_stdout) {
14 printf("Printed from a test to stdout!\n");
15}
16
17PCUT_TEST(print_to_stderr) {
18 fprintf(stderr, "Printed from a test to stderr!\n");
19}
20
21PCUT_TEST(print_to_stdout_and_fail) {
22 printf("Printed from a test to stdout!\n");
23 PCUT_ASSERT_NOT_NULL(0);
24}
25
26PCUT_MAIN()
Note: See TracBrowser for help on using the repository browser.