Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR
- rm -rf fixcol bf
- rm -rf pruebas/**/tmp_*
- rm -rf strutil_pruebas *.o *.d *.dSYM
- g++ -g -std=c++14 -Wall -Wextra -Werror -c -o strutil_test.o strutil_test.cc
- gcc -g -O2 -std=c99 -Wall -pedantic -Wformat=2 -Wshadow -Wpointer-arith -Wunreachable-code -Wconversion -Wno-sign-conversion -Wbad-function-cast -Werror -c -o strutil.o strutil.c
- g++ strutil_test.o strutil.o -lgtest -lpthread -o strutil_pruebas
- ==20== Memcheck, a memory error detector
- ==20== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==20== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
- ==20== Command: ./strutil_pruebas --gtest_filter=-test_join.test_complejidad_*:test_join.unir_cadenas_largas
- ==20==
- Note: Google Test filter = -test_join.test_complejidad_*:test_join.unir_cadenas_largas
- [==========] Running 35 tests from 4 test cases.
- [----------] Global test environment set-up.
- [----------] 6 tests from test_substr
- [ RUN ] test_substr.subcadena6
- [ OK ] test_substr.subcadena6 (38 ms)
- [ RUN ] test_substr.subcadena1
- [ OK ] test_substr.subcadena1 (4 ms)
- [ RUN ] test_substr.subcadena0
- [ OK ] test_substr.subcadena0 (8 ms)
- [ RUN ] test_substr.cadena_completa
- [ OK ] test_substr.cadena_completa (4 ms)
- [ RUN ] test_substr.cadena_sobrepasa
- [ OK ] test_substr.cadena_sobrepasa (5 ms)
- [ RUN ] test_substr.cadena_menos_uno
- [ OK ] test_substr.cadena_menos_uno (4 ms)
- [----------] 6 tests from test_substr (98 ms total)
- [----------] 12 tests from test_split
- [ RUN ] test_split.cadena_sin_separador
- [ OK ] test_split.cadena_sin_separador (11 ms)
- [ RUN ] test_split.un_separador
- [ OK ] test_split.un_separador (6 ms)
- [ RUN ] test_split.muchos_separadores
- [ OK ] test_split.muchos_separadores (9 ms)
- [ RUN ] test_split.cadena_vacia
- [ OK ] test_split.cadena_vacia (5 ms)
- [ RUN ] test_split.separador_nulo
- [ OK ] test_split.separador_nulo (5 ms)
- [ RUN ] test_split.sep_extra_al_principio
- [ OK ] test_split.sep_extra_al_principio (6 ms)
- [ RUN ] test_split.sep_extra_al_final
- [ OK ] test_split.sep_extra_al_final (6 ms)
- [ RUN ] test_split.separadores_extra_everywhere
- [ OK ] test_split.separadores_extra_everywhere (10 ms)
- [ RUN ] test_split.separadores_contiguos
- [ OK ] test_split.separadores_contiguos (9 ms)
- [ RUN ] test_split.solo_separadores
- [ OK ] test_split.solo_separadores (9 ms)
- [ RUN ] test_split.cadena_con_salto_de_linea
- [ OK ] test_split.cadena_con_salto_de_linea (6 ms)
- [ RUN ] test_split.separador_antes_de_salto_de_linea
- [ OK ] test_split.separador_antes_de_salto_de_linea (7 ms)
- [----------] 12 tests from test_split (96 ms total)
- [----------] 6 tests from test_free_strv
- [ RUN ] test_free_strv.libera_una_cadena
- [ OK ] test_free_strv.libera_una_cadena (6 ms)
- [ RUN ] test_free_strv.libera_muchos_elementos
- [ OK ] test_free_strv.libera_muchos_elementos (4 ms)
- [ RUN ] test_free_strv.vacio
- [ OK ] test_free_strv.vacio (2 ms)
- [ RUN ] test_free_strv.libera_aun_sin_ending_null
- [ OK ] test_free_strv.libera_aun_sin_ending_null (3 ms)
- [ RUN ] test_free_strv.no_libera_memoria_invalida_despues
- [ OK ] test_free_strv.no_libera_memoria_invalida_despues (3 ms)
- [ RUN ] test_free_strv.libera_el_resultado_de_split
- [ OK ] test_free_strv.libera_el_resultado_de_split (4 ms)
- [----------] 6 tests from test_free_strv (27 ms total)
- [----------] 11 tests from test_join
- [ RUN ] test_join.unir_tres
- [ OK ] test_join.unir_tres (8 ms)
- [ RUN ] test_join.unir_dos
- [ OK ] test_join.unir_dos (4 ms)
- [ RUN ] test_join.unir_una
- [ OK ] test_join.unir_una (4 ms)
- [ RUN ] test_join.unir_vacia
- [ OK ] test_join.unir_vacia (4 ms)
- [ RUN ] test_join.unir_cero
- [ OK ] test_join.unir_cero (4 ms)
- [ RUN ] test_join.unir_vacia_izquierda
- [ OK ] test_join.unir_vacia_izquierda (4 ms)
- [ RUN ] test_join.unir_vacia_derecha
- [ OK ] test_join.unir_vacia_derecha (4 ms)
- [ RUN ] test_join.unir_vacia_derecha2
- [ OK ] test_join.unir_vacia_derecha2 (5 ms)
- [ RUN ] test_join.unir_todas_vacias
- [ OK ] test_join.unir_todas_vacias (4 ms)
- [ RUN ] test_join.unir_mezcla_vacias_no_vacias
- [ OK ] test_join.unir_mezcla_vacias_no_vacias (4 ms)
- [ RUN ] test_join.concatenar_todas
- [ OK ] test_join.concatenar_todas (4 ms)
- [----------] 11 tests from test_join (57 ms total)
- [----------] Global test environment tear-down
- [==========] 35 tests from 4 test cases ran. (427 ms total)
- [ PASSED ] 35 tests.
- ==20==
- ==20== HEAP SUMMARY:
- ==20== in use at exit: 0 bytes in 0 blocks
- ==20== total heap usage: 746 allocs, 746 frees, 163,577 bytes allocated
- ==20==
- ==20== All heap blocks were freed -- no leaks are possible
- ==20==
- ==20== For counts of detected and suppressed errors, rerun with: -v
- ==20== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
- ==23== Memcheck, a memory error detector
- ==23== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==23== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
- ==23== Command: ./strutil_pruebas --gtest_filter=test_join.unir_cadenas_largas
- ==23==
- Note: Google Test filter = test_join.unir_cadenas_largas
- [==========] Running 1 test from 1 test case.
- [----------] Global test environment set-up.
- [----------] 1 test from test_join
- [ RUN ] test_join.unir_cadenas_largas
- [ OK ] test_join.unir_cadenas_largas (3970 ms)
- [----------] 1 test from test_join (4003 ms total)
- [----------] Global test environment tear-down
- [==========] 1 test from 1 test case ran. (4147 ms total)
- [ PASSED ] 1 test.
- ==23==
- ==23== HEAP SUMMARY:
- ==23== in use at exit: 0 bytes in 0 blocks
- ==23== total heap usage: 608 allocs, 608 frees, 34,109,740 bytes allocated
- ==23==
- ==23== All heap blocks were freed -- no leaks are possible
- ==23==
- ==23== For counts of detected and suppressed errors, rerun with: -v
- ==23== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
- gcc -g -O2 -std=c99 -Wall -pedantic -Wformat=2 -Wshadow -Wpointer-arith -Wunreachable-code -Wconversion -Wno-sign-conversion -Wbad-function-cast -Werror -c -o fixcol.o fixcol.c
- fixcol.c: In function ‘main’:
- fixcol.c:45:2: error: ‘cadena’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- free(cadena);
- ^~~~~~~~~~~~
- cc1: all warnings being treated as errors
- <builtin>: recipe for target 'fixcol.o' failed
- make: *** [fixcol.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement