[T] Debug

This commit is contained in:
seleznevae 2018-03-17 21:21:53 +03:00
parent 2f4708e71a
commit a6e4c0ccae
4 changed files with 11 additions and 2 deletions

View File

@ -35,6 +35,7 @@ script:
- cmake .. -DFORT_TEST_BUILD=ON -DFORT_GCC_BUILD=${GCC_BUILD} - cmake .. -DFORT_TEST_BUILD=ON -DFORT_GCC_BUILD=${GCC_BUILD}
- cmake --build . --target all - cmake --build . --target all
- ls - ls
- LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_dummy
- LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_example - LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_example
- LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_test - LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_test

View File

@ -49,6 +49,8 @@ target_link_libraries(libfort_test
cmocka) cmocka)
add_executable(${PROJECT_NAME}_dummy
example/main2.c)

6
example/main2.c Normal file
View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main()
{
return 0;
}

View File

@ -333,7 +333,7 @@ int ft_nwwrite_ln(FTABLE *FT_RESTRICT table, size_t n, const wchar_t* FT_RESTRIC
} }
FT_EXTERN int ft_row_write(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT cells[]) int ft_row_write(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT cells[])
{ {
size_t i = 0; size_t i = 0;
assert(table); assert(table);
@ -347,7 +347,7 @@ FT_EXTERN int ft_row_write(FTABLE *FT_RESTRICT table, size_t cols, const char* F
return F_SUCCESS; return F_SUCCESS;
} }
FT_EXTERN int ft_row_write_ln(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT cells[]) int ft_row_write_ln(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT cells[])
{ {
assert(table); assert(table);
int status = ft_row_write(table, cols, cells); int status = ft_row_write(table, cols, cells);