Changeset 9eb1ff5 in mainline for uspace/lib/pcut/tests
- Timestamp:
- 2017-12-08T14:47:08Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1694b6b
- Parents:
- 6fb8b2c
- Location:
- uspace/lib/pcut/tests
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/tests/abort.expected
r6fb8b2c r9eb1ff5 3 3 not ok 1 access_null_pointer aborted 4 4 #> Finished suite Default (failed 1 of 1). 5 #> Done: 1 of 1 tests failed. -
uspace/lib/pcut/tests/asserts.expected
r6fb8b2c r9eb1ff5 18 18 # error: asserts.c:72: Expected false but got <42> 19 19 #> Finished suite Default (failed 7 of 9). 20 #> Done: 7 of 9 tests failed. -
uspace/lib/pcut/tests/beforeafter.c
r6fb8b2c r9eb1ff5 28 28 29 29 #define _BSD_SOURCE 30 #define _DEFAULT_SOURCE 30 31 31 32 #include <pcut/pcut.h> -
uspace/lib/pcut/tests/beforeafter.expected
r6fb8b2c r9eb1ff5 2 2 #> Starting suite suite_with_setup_and_teardown. 3 3 ok 1 test_with_setup_and_teardown 4 #> Finished suite suite_with_setup_and_teardown ( failed 0 of 1).4 #> Finished suite suite_with_setup_and_teardown (passed). 5 5 #> Starting suite another_without_setup. 6 6 ok 2 test_without_any_setup_or_teardown 7 #> Finished suite another_without_setup (failed 0 of 1). 7 #> Finished suite another_without_setup (passed). 8 #> Done: all tests passed. -
uspace/lib/pcut/tests/errno.expected
r6fb8b2c r9eb1ff5 6 6 # error: errno.c:54: Expected error 0 (EOK, *****) but got error ***** (*****) 7 7 #> Finished suite Default (failed 2 of 2). 8 #> Done: 2 of 2 tests failed. -
uspace/lib/pcut/tests/inithook.expected
r6fb8b2c r9eb1ff5 3 3 ok 1 check_init_counter 4 4 ok 2 check_init_counter_2 5 #> Finished suite Default (failed 0 of 2). 5 #> Finished suite Default (passed). 6 #> Done: all tests passed. -
uspace/lib/pcut/tests/manytests.expected
r6fb8b2c r9eb1ff5 81 81 ok 79 my_test_079 82 82 ok 80 my_test_080 83 #> Finished suite Default (failed 0 of 80). 83 #> Finished suite Default (passed). 84 #> Done: all tests passed. -
uspace/lib/pcut/tests/multisuite.expected
r6fb8b2c r9eb1ff5 11 11 ok 4 test_same_numbers 12 12 #> Finished suite intmin (failed 1 of 2). 13 #> Done: 3 of 4 tests failed. -
uspace/lib/pcut/tests/preinithook.expected
r6fb8b2c r9eb1ff5 3 3 ok 1 check_init_counter 4 4 ok 2 check_init_counter_2 5 #> Finished suite Default (failed 0 of 2). 5 #> Finished suite Default (passed). 6 #> Done: all tests passed. -
uspace/lib/pcut/tests/printing.expected
r6fb8b2c r9eb1ff5 9 9 # stdio: Printed from a test to stdout! 10 10 #> Finished suite Default (failed 1 of 3). 11 #> Done: 1 of 3 tests failed. -
uspace/lib/pcut/tests/simple.expected
r6fb8b2c r9eb1ff5 8 8 # error: simple.c:46: Expected <abc> but got <abd> ("abc" != "XXXabd" + 3) 9 9 #> Finished suite Default (failed 3 of 3). 10 #> Done: 3 of 3 tests failed. -
uspace/lib/pcut/tests/skip.expected
r6fb8b2c r9eb1ff5 3 3 ok 1 normal_test 4 4 ok 2 again_normal_test 5 #> Finished suite Default (failed 0 of 2). 5 #> Finished suite Default (passed). 6 #> Done: all tests passed. -
uspace/lib/pcut/tests/suites.expected
r6fb8b2c r9eb1ff5 10 10 # error: suites.c:49: Expected <5> but got <654> (5 != intmin(654, 5)) 11 11 #> Finished suite intmin (failed 1 of 1). 12 #> Done: 3 of 3 tests failed. -
uspace/lib/pcut/tests/teardown.expected
r6fb8b2c r9eb1ff5 21 21 # stdio: This is failing teardown-function. 22 22 #> Finished suite with_failing_teardown (failed 3 of 3). 23 #> Done: 4 of 5 tests failed. -
uspace/lib/pcut/tests/teardownaborts.expected
r6fb8b2c r9eb1ff5 5 5 # stdio: Tear-down will cause null pointer access... 6 6 #> Finished suite Default (failed 1 of 1). 7 #> Done: 1 of 1 tests failed. -
uspace/lib/pcut/tests/timeout.c
r6fb8b2c r9eb1ff5 29 29 #include <pcut/pcut.h> 30 30 31 #ifdef __helenos__ 32 #include <thread.h> 33 #else 31 34 #ifdef __unix 32 // FIXME 33 #include <thread.h> 35 #include <unistd.h> 34 36 #endif 35 37 #if defined(__WIN64) || defined(__WIN32) || defined(_WIN32) 36 38 #include <windows.h> 39 #endif 37 40 #endif 38 41 … … 41 44 42 45 static void my_sleep(int sec) { 46 #ifdef __helenos__ 47 thread_sleep(sec); 48 #else 43 49 #ifdef __unix 44 // FIXME 45 thread_sleep(sec); 50 sleep(sec); 46 51 #endif 47 52 #if defined(__WIN64) || defined(__WIN32) || defined(_WIN32) 48 53 Sleep(1000 * sec); 54 #endif 49 55 #endif 50 56 } -
uspace/lib/pcut/tests/timeout.expected
r6fb8b2c r9eb1ff5 7 7 # stdio: Text after the sleep. 8 8 #> Finished suite Default (failed 1 of 2). 9 #> Done: 1 of 2 tests failed. -
uspace/lib/pcut/tests/xmlreport.c
r6fb8b2c r9eb1ff5 30 30 #include "tested.h" 31 31 32 #include <pcut/pcut.h> 33 #include "tested.h" 32 34 33 35 PCUT_INIT
Note:
See TracChangeset
for help on using the changeset viewer.