Changeset 4b54bd9 in mainline for uspace/lib/pcut/tests/printing.c
- Timestamp:
- 2018-09-12T13:23:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3da0ee4
- Parents:
- 275530a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/tests/printing.c
r275530a4 r4b54bd9 31 31 #include <stdio.h> 32 32 33 PCUT_INIT ;33 PCUT_INIT 34 34 35 PCUT_TEST(print_to_stdout) 36 { 35 PCUT_TEST(print_to_stdout) { 37 36 printf("Printed from a test to stdout!\n"); 38 37 } 39 38 40 PCUT_TEST(print_to_stderr) 41 { 39 PCUT_TEST(print_to_stderr) { 42 40 fprintf(stderr, "Printed from a test to stderr!\n"); 43 41 } 44 42 45 PCUT_TEST(print_to_stdout_and_fail) 46 { 43 PCUT_TEST(print_to_stdout_and_fail) { 47 44 printf("Printed from a test to stdout!\n"); 48 45 PCUT_ASSERT_NOT_NULL(0); 49 46 } 50 47 51 PCUT_MAIN() ;48 PCUT_MAIN()
Note:
See TracChangeset
for help on using the changeset viewer.