Advertisement
Guest User

Untitled

a guest
May 25th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 6.56 KB | None | 0 0
  1. ERROR
  2.  
  3. rm -rf fixcol bf
  4. rm -rf pruebas/**/tmp_*
  5. rm -rf strutil_pruebas *.o *.d *.dSYM
  6. g++ -g -std=c++14 -Wall -Wextra -Werror   -c -o strutil_test.o strutil_test.cc
  7. 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
  8. g++ strutil_test.o strutil.o -lgtest -lpthread -o strutil_pruebas
  9. ==20== Memcheck, a memory error detector
  10. ==20== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  11. ==20== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
  12. ==20== Command: ./strutil_pruebas --gtest_filter=-test_join.test_complejidad_*:test_join.unir_cadenas_largas
  13. ==20==
  14. Note: Google Test filter = -test_join.test_complejidad_*:test_join.unir_cadenas_largas
  15. [==========] Running 35 tests from 4 test cases.
  16. [----------] Global test environment set-up.
  17. [----------] 6 tests from test_substr
  18. [ RUN      ] test_substr.subcadena6
  19. [       OK ] test_substr.subcadena6 (38 ms)
  20. [ RUN      ] test_substr.subcadena1
  21. [       OK ] test_substr.subcadena1 (4 ms)
  22. [ RUN      ] test_substr.subcadena0
  23. [       OK ] test_substr.subcadena0 (8 ms)
  24. [ RUN      ] test_substr.cadena_completa
  25. [       OK ] test_substr.cadena_completa (4 ms)
  26. [ RUN      ] test_substr.cadena_sobrepasa
  27. [       OK ] test_substr.cadena_sobrepasa (5 ms)
  28. [ RUN      ] test_substr.cadena_menos_uno
  29. [       OK ] test_substr.cadena_menos_uno (4 ms)
  30. [----------] 6 tests from test_substr (98 ms total)
  31.  
  32. [----------] 12 tests from test_split
  33. [ RUN      ] test_split.cadena_sin_separador
  34. [       OK ] test_split.cadena_sin_separador (11 ms)
  35. [ RUN      ] test_split.un_separador
  36. [       OK ] test_split.un_separador (6 ms)
  37. [ RUN      ] test_split.muchos_separadores
  38. [       OK ] test_split.muchos_separadores (9 ms)
  39. [ RUN      ] test_split.cadena_vacia
  40. [       OK ] test_split.cadena_vacia (5 ms)
  41. [ RUN      ] test_split.separador_nulo
  42. [       OK ] test_split.separador_nulo (5 ms)
  43. [ RUN      ] test_split.sep_extra_al_principio
  44. [       OK ] test_split.sep_extra_al_principio (6 ms)
  45. [ RUN      ] test_split.sep_extra_al_final
  46. [       OK ] test_split.sep_extra_al_final (6 ms)
  47. [ RUN      ] test_split.separadores_extra_everywhere
  48. [       OK ] test_split.separadores_extra_everywhere (10 ms)
  49. [ RUN      ] test_split.separadores_contiguos
  50. [       OK ] test_split.separadores_contiguos (9 ms)
  51. [ RUN      ] test_split.solo_separadores
  52. [       OK ] test_split.solo_separadores (9 ms)
  53. [ RUN      ] test_split.cadena_con_salto_de_linea
  54. [       OK ] test_split.cadena_con_salto_de_linea (6 ms)
  55. [ RUN      ] test_split.separador_antes_de_salto_de_linea
  56. [       OK ] test_split.separador_antes_de_salto_de_linea (7 ms)
  57. [----------] 12 tests from test_split (96 ms total)
  58.  
  59. [----------] 6 tests from test_free_strv
  60. [ RUN      ] test_free_strv.libera_una_cadena
  61. [       OK ] test_free_strv.libera_una_cadena (6 ms)
  62. [ RUN      ] test_free_strv.libera_muchos_elementos
  63. [       OK ] test_free_strv.libera_muchos_elementos (4 ms)
  64. [ RUN      ] test_free_strv.vacio
  65. [       OK ] test_free_strv.vacio (2 ms)
  66. [ RUN      ] test_free_strv.libera_aun_sin_ending_null
  67. [       OK ] test_free_strv.libera_aun_sin_ending_null (3 ms)
  68. [ RUN      ] test_free_strv.no_libera_memoria_invalida_despues
  69. [       OK ] test_free_strv.no_libera_memoria_invalida_despues (3 ms)
  70. [ RUN      ] test_free_strv.libera_el_resultado_de_split
  71. [       OK ] test_free_strv.libera_el_resultado_de_split (4 ms)
  72. [----------] 6 tests from test_free_strv (27 ms total)
  73.  
  74. [----------] 11 tests from test_join
  75. [ RUN      ] test_join.unir_tres
  76. [       OK ] test_join.unir_tres (8 ms)
  77. [ RUN      ] test_join.unir_dos
  78. [       OK ] test_join.unir_dos (4 ms)
  79. [ RUN      ] test_join.unir_una
  80. [       OK ] test_join.unir_una (4 ms)
  81. [ RUN      ] test_join.unir_vacia
  82. [       OK ] test_join.unir_vacia (4 ms)
  83. [ RUN      ] test_join.unir_cero
  84. [       OK ] test_join.unir_cero (4 ms)
  85. [ RUN      ] test_join.unir_vacia_izquierda
  86. [       OK ] test_join.unir_vacia_izquierda (4 ms)
  87. [ RUN      ] test_join.unir_vacia_derecha
  88. [       OK ] test_join.unir_vacia_derecha (4 ms)
  89. [ RUN      ] test_join.unir_vacia_derecha2
  90. [       OK ] test_join.unir_vacia_derecha2 (5 ms)
  91. [ RUN      ] test_join.unir_todas_vacias
  92. [       OK ] test_join.unir_todas_vacias (4 ms)
  93. [ RUN      ] test_join.unir_mezcla_vacias_no_vacias
  94. [       OK ] test_join.unir_mezcla_vacias_no_vacias (4 ms)
  95. [ RUN      ] test_join.concatenar_todas
  96. [       OK ] test_join.concatenar_todas (4 ms)
  97. [----------] 11 tests from test_join (57 ms total)
  98.  
  99. [----------] Global test environment tear-down
  100. [==========] 35 tests from 4 test cases ran. (427 ms total)
  101. [  PASSED  ] 35 tests.
  102. ==20==
  103. ==20== HEAP SUMMARY:
  104. ==20==     in use at exit: 0 bytes in 0 blocks
  105. ==20==   total heap usage: 746 allocs, 746 frees, 163,577 bytes allocated
  106. ==20==
  107. ==20== All heap blocks were freed -- no leaks are possible
  108. ==20==
  109. ==20== For counts of detected and suppressed errors, rerun with: -v
  110. ==20== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
  111. ==23== Memcheck, a memory error detector
  112. ==23== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  113. ==23== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
  114. ==23== Command: ./strutil_pruebas --gtest_filter=test_join.unir_cadenas_largas
  115. ==23==
  116. Note: Google Test filter = test_join.unir_cadenas_largas
  117. [==========] Running 1 test from 1 test case.
  118. [----------] Global test environment set-up.
  119. [----------] 1 test from test_join
  120. [ RUN      ] test_join.unir_cadenas_largas
  121. [       OK ] test_join.unir_cadenas_largas (3970 ms)
  122. [----------] 1 test from test_join (4003 ms total)
  123.  
  124. [----------] Global test environment tear-down
  125. [==========] 1 test from 1 test case ran. (4147 ms total)
  126. [  PASSED  ] 1 test.
  127. ==23==
  128. ==23== HEAP SUMMARY:
  129. ==23==     in use at exit: 0 bytes in 0 blocks
  130. ==23==   total heap usage: 608 allocs, 608 frees, 34,109,740 bytes allocated
  131. ==23==
  132. ==23== All heap blocks were freed -- no leaks are possible
  133. ==23==
  134. ==23== For counts of detected and suppressed errors, rerun with: -v
  135. ==23== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
  136. 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
  137. fixcol.c: In function ‘main’:
  138. fixcol.c:45:2: error: ‘cadena’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  139.   free(cadena);
  140.   ^~~~~~~~~~~~
  141. cc1: all warnings being treated as errors
  142. <builtin>: recipe for target 'fixcol.o' failed
  143. make: *** [fixcol.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement