Changeset 1433ecda in mainline for uspace/lib/pcut/src/os/generic.c
- Timestamp:
- 2018-04-04T15:42:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/os/generic.c
r47b2d7e3 r1433ecda 81 81 * @param test Test that is about to start. 82 82 */ 83 static void before_test_start(pcut_item_t *test) { 83 static void before_test_start(pcut_item_t *test) 84 { 84 85 pcut_report_test_start(test); 85 86 … … 93 94 * @return Test outcome code. 94 95 */ 95 static int convert_wait_status_to_outcome(int status) { 96 static int convert_wait_status_to_outcome(int status) 97 { 96 98 if (status < 0) { 97 99 return PCUT_OUTCOME_INTERNAL_ERROR; … … 108 110 * @param test Test to be run. 109 111 */ 110 int pcut_run_test_forking(const char *self_path, pcut_item_t *test) { 112 int pcut_run_test_forking(const char *self_path, pcut_item_t *test) 113 { 111 114 int rc, outcome; 112 115 FILE *tempfile; … … 118 121 FORMAT_TEMP_FILENAME(tempfile_name, PCUT_TEMP_FILENAME_BUFFER_SIZE - 1); 119 122 FORMAT_COMMAND(command, PCUT_COMMAND_LINE_BUFFER_SIZE - 1, 120 123 self_path, (test)->id, tempfile_name); 121 124 122 125 PCUT_DEBUG("Will execute <%s> (temp file <%s>) with system().", 123 126 command, tempfile_name); 124 127 125 128 rc = system(command); … … 144 147 } 145 148 146 void pcut_hook_before_test(pcut_item_t *test) { 149 void pcut_hook_before_test(pcut_item_t *test) 150 { 147 151 PCUT_UNUSED(test); 148 152
Note:
See TracChangeset
for help on using the changeset viewer.