Advertisement
niqo1993

Untitled

Nov 18th, 2019
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 7.90 KB | None | 0 0
  1. Ejecución de pruebas con Valgrind:
  2.  
  3. 01 Prueba simple suma, resta, division y multiplicacion
  4. ==147== 27 bytes in 9 blocks are definitely lost in loss record 1 of 1
  5. ==147==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  6. ==147==    by 0x4ED99B9: strdup (strdup.c:42)
  7. ==147==    by 0x108FEA: split (strutil.c:53)
  8. ==147==    by 0x10897B: main (dc.c:37)
  9. ==147==
  10. ERROR
  11. 02 Prueba de calculo de raices
  12. ==149== 72 bytes in 12 blocks are definitely lost in loss record 1 of 1
  13. ==149==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  14. ==149==    by 0x4ED99B9: strdup (strdup.c:42)
  15. ==149==    by 0x108FEA: split (strutil.c:53)
  16. ==149==    by 0x10897B: main (dc.c:37)
  17. ==149==
  18. ERROR
  19. 03 Pruebas calculo de potencia
  20. ==151== 21 bytes in 7 blocks are definitely lost in loss record 1 of 1
  21. ==151==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  22. ==151==    by 0x4ED99B9: strdup (strdup.c:42)
  23. ==151==    by 0x108FEA: split (strutil.c:53)
  24. ==151==    by 0x10897B: main (dc.c:37)
  25. ==151==
  26. ERROR
  27. 04 Pruebas de operacion de logaritmo
  28. ==153== 60 bytes in 12 blocks are definitely lost in loss record 1 of 1
  29. ==153==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  30. ==153==    by 0x4ED99B9: strdup (strdup.c:42)
  31. ==153==    by 0x108FEA: split (strutil.c:53)
  32. ==153==    by 0x10897B: main (dc.c:37)
  33. ==153==
  34. ERROR
  35. 05 Pruebas con operacion ternaria
  36. ==155== 19 bytes in 7 blocks are definitely lost in loss record 1 of 1
  37. ==155==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  38. ==155==    by 0x4ED99B9: strdup (strdup.c:42)
  39. ==155==    by 0x108FEA: split (strutil.c:53)
  40. ==155==    by 0x10897B: main (dc.c:37)
  41. ==155==
  42. ERROR
  43. 07 Suma con espacios extra entre los numeros y operaciones, no tiene que fallar
  44. ==157== 2 bytes in 1 blocks are definitely lost in loss record 1 of 1
  45. ==157==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  46. ==157==    by 0x4ED99B9: strdup (strdup.c:42)
  47. ==157==    by 0x108FEA: split (strutil.c:53)
  48. ==157==    by 0x10897B: main (dc.c:37)
  49. ==157==
  50. ERROR
  51. 08 Prueba casos con todas las operaciones (parte 1)
  52. ==159== 43 bytes in 12 blocks are definitely lost in loss record 1 of 1
  53. ==159==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  54. ==159==    by 0x4ED99B9: strdup (strdup.c:42)
  55. ==159==    by 0x108FEA: split (strutil.c:53)
  56. ==159==    by 0x10897B: main (dc.c:37)
  57. ==159==
  58. ERROR
  59. 09 Probando usando todas las operaciones (parte 2)
  60. ==161== 29 bytes in 10 blocks are definitely lost in loss record 1 of 1
  61. ==161==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  62. ==161==    by 0x4ED99B9: strdup (strdup.c:42)
  63. ==161==    by 0x108FEA: split (strutil.c:53)
  64. ==161==    by 0x10897B: main (dc.c:37)
  65. ==161==
  66. ERROR
  67. 10 Casos bordes: Division por cero
  68. ==163== 2 bytes in 1 blocks are definitely lost in loss record 1 of 4
  69. ==163==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  70. ==163==    by 0x108E60: substr (strutil.c:9)
  71. ==163==    by 0x1089C6: main (dc.c:39)
  72. ==163==
  73. ==163== 3 bytes in 1 blocks are definitely lost in loss record 2 of 4
  74. ==163==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  75. ==163==    by 0x4ED99B9: strdup (strdup.c:42)
  76. ==163==    by 0x108FEA: split (strutil.c:53)
  77. ==163==    by 0x10897B: main (dc.c:37)
  78. ==163==
  79. ==163== 8 bytes in 1 blocks are definitely lost in loss record 3 of 4
  80. ==163==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  81. ==163==    by 0x109446: calcular (dc.c:85)
  82. ==163==    by 0x1089F9: main (dc.c:47)
  83. ==163==
  84. ==163== 16 bytes in 2 blocks are definitely lost in loss record 4 of 4
  85. ==163==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  86. ==163==    by 0x108A37: main (dc.c:42)
  87. ==163==
  88. ERROR
  89. 11 Casos Bordes: Logaritmo usando bases incorrectas (base negativa, base 0, base 1)==165== 12 bytes in 3 blocks are definitely lost in loss record 1 of 4
  90. ==165==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  91. ==165==    by 0x108E60: substr (strutil.c:9)
  92. ==165==    by 0x1089C6: main (dc.c:39)
  93. ==165==
  94. ==165== 15 bytes in 3 blocks are definitely lost in loss record 2 of 4
  95. ==165==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  96. ==165==    by 0x4ED99B9: strdup (strdup.c:42)
  97. ==165==    by 0x108FEA: split (strutil.c:53)
  98. ==165==    by 0x10897B: main (dc.c:37)
  99. ==165==
  100. ==165== 24 bytes in 3 blocks are definitely lost in loss record 3 of 4
  101. ==165==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  102. ==165==    by 0x109446: calcular (dc.c:85)
  103. ==165==    by 0x1089F9: main (dc.c:47)
  104. ==165==
  105. ==165== 48 bytes in 6 blocks are definitely lost in loss record 4 of 4
  106. ==165==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  107. ==165==    by 0x108A37: main (dc.c:42)
  108. ==165==
  109. ERROR
  110. 12 Casos Bordes: llamados con sintaxis incorrectas (operadores de más, numeros de más, operaciones incompletas)==167== 2 bytes in 1 blocks are definitely lost in loss record 1 of 5
  111. ==167==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  112. ==167==    by 0x4ED99B9: strdup (strdup.c:42)
  113. ==167==    by 0x108FAE: split (strutil.c:40)
  114. ==167==    by 0x10897B: main (dc.c:37)
  115. ==167==
  116. ==167== 26 bytes in 10 blocks are definitely lost in loss record 2 of 5
  117. ==167==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  118. ==167==    by 0x108E60: substr (strutil.c:9)
  119. ==167==    by 0x1089C6: main (dc.c:39)
  120. ==167==
  121. ==167== 32 bytes in 4 blocks are definitely lost in loss record 3 of 5
  122. ==167==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  123. ==167==    by 0x108A37: main (dc.c:42)
  124. ==167==
  125. ==167== 32 bytes in 4 blocks are definitely lost in loss record 4 of 5
  126. ==167==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  127. ==167==    by 0x109446: calcular (dc.c:85)
  128. ==167==    by 0x1089F9: main (dc.c:47)
  129. ==167==
  130. ==167== 40 bytes in 11 blocks are definitely lost in loss record 5 of 5
  131. ==167==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  132. ==167==    by 0x4ED99B9: strdup (strdup.c:42)
  133. ==167==    by 0x108FEA: split (strutil.c:53)
  134. ==167==    by 0x10897B: main (dc.c:37)
  135. ==167==
  136. ERROR
  137. 13 Casos Bordes: llamado a raiz (ej: mismo radicando e indice)==169== 6 bytes in 1 blocks are definitely lost in loss record 1 of 1
  138. ==169==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  139. ==169==    by 0x4ED99B9: strdup (strdup.c:42)
  140. ==169==    by 0x108FEA: split (strutil.c:53)
  141. ==169==    by 0x10897B: main (dc.c:37)
  142. ==169==
  143. ERROR
  144. 14 Casos Bordes: Potencias==171== 2 bytes in 1 blocks are definitely lost in loss record 1 of 4
  145. ==171==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  146. ==171==    by 0x108E60: substr (strutil.c:9)
  147. ==171==    by 0x1089C6: main (dc.c:39)
  148. ==171==
  149. ==171== 3 bytes in 1 blocks are definitely lost in loss record 2 of 4
  150. ==171==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  151. ==171==    by 0x4ED99B9: strdup (strdup.c:42)
  152. ==171==    by 0x108FEA: split (strutil.c:53)
  153. ==171==    by 0x10897B: main (dc.c:37)
  154. ==171==
  155. ==171== 8 bytes in 1 blocks are definitely lost in loss record 3 of 4
  156. ==171==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  157. ==171==    by 0x109446: calcular (dc.c:85)
  158. ==171==    by 0x1089F9: main (dc.c:47)
  159. ==171==
  160. ==171== 16 bytes in 2 blocks are definitely lost in loss record 4 of 4
  161. ==171==    at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  162. ==171==    by 0x108A37: main (dc.c:42)
  163. ==171==
  164. ERROR
  165. Makefile:14: recipe for target 'dc' failed
  166. make: *** [dc] Error 2
  167. make: Target 'all' not remade because of errors.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement