Discussion:
Valgrind: r16217 - in /trunk/memcheck/tests: leak_cpp_interior.cpp leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.stderr.exp-64bit-solaris leak_cpp_interior.stderr.exp-solaris
(too old to reply)
s***@valgrind.org
2017-01-31 18:22:20 UTC
Permalink
Raw Message
Author: petarj
Date: Tue Jan 31 18:22:20 2017
New Revision: 16217

Log:
force old implementation of std::string for leak_cpp_interior test

This patch forces leak_cpp_interior to be compiled using old implementation
of std::string.

Related issue #373069

Patch by Aleksandar Rikalo.

Modified:
trunk/memcheck/tests/leak_cpp_interior.cpp
trunk/memcheck/tests/leak_cpp_interior.stderr.exp
trunk/memcheck/tests/leak_cpp_interior.stderr.exp-64bit
trunk/memcheck/tests/leak_cpp_interior.stderr.exp-64bit-solaris
trunk/memcheck/tests/leak_cpp_interior.stderr.exp-solaris

Modified: trunk/memcheck/tests/leak_cpp_interior.cpp
==============================================================================
--- trunk/memcheck/tests/leak_cpp_interior.cpp (original)
+++ trunk/memcheck/tests/leak_cpp_interior.cpp Tue Jan 31 18:22:20 2017
@@ -1,3 +1,4 @@
+#define _GLIBCXX_USE_CXX11_ABI 0
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <stdio.h>

Modified: trunk/memcheck/tests/leak_cpp_interior.stderr.exp
==============================================================================
--- trunk/memcheck/tests/leak_cpp_interior.stderr.exp (original)
+++ trunk/memcheck/tests/leak_cpp_interior.stderr.exp Tue Jan 31 18:22:20 2017
@@ -2,8 +2,8 @@
valgrind output will go to log
VALGRIND_DO_LEAK_CHECK
4 bytes in 1 blocks are definitely lost in loss record ... of ...
- by 0x........: doit() (leak_cpp_interior.cpp:115)
- by 0x........: main (leak_cpp_interior.cpp:130)
+ by 0x........: doit() (leak_cpp_interior.cpp:116)
+ by 0x........: main (leak_cpp_interior.cpp:131)

LEAK SUMMARY:
definitely lost: 4 bytes in 1 blocks

Modified: trunk/memcheck/tests/leak_cpp_interior.stderr.exp-64bit
==============================================================================
--- trunk/memcheck/tests/leak_cpp_interior.stderr.exp-64bit (original)
+++ trunk/memcheck/tests/leak_cpp_interior.stderr.exp-64bit Tue Jan 31 18:22:20 2017
@@ -2,8 +2,8 @@
valgrind output will go to log
VALGRIND_DO_LEAK_CHECK
8 bytes in 1 blocks are definitely lost in loss record ... of ...
- by 0x........: doit() (leak_cpp_interior.cpp:115)
- by 0x........: main (leak_cpp_interior.cpp:130)
+ by 0x........: doit() (leak_cpp_interior.cpp:116)
+ by 0x........: main (leak_cpp_interior.cpp:131)

LEAK SUMMARY:
definitely lost: 8 bytes in 1 blocks

Modified: trunk/memcheck/tests/leak_cpp_interior.stderr.exp-64bit-solaris
==============================================================================
--- trunk/memcheck/tests/leak_cpp_interior.stderr.exp-64bit-solaris (original)
+++ trunk/memcheck/tests/leak_cpp_interior.stderr.exp-64bit-solaris Tue Jan 31 18:22:20 2017
@@ -2,8 +2,8 @@
valgrind output will go to log
VALGRIND_DO_LEAK_CHECK
8 bytes in 1 blocks are definitely lost in loss record ... of ...
- by 0x........: doit() (leak_cpp_interior.cpp:115)
- by 0x........: main (leak_cpp_interior.cpp:130)
+ by 0x........: doit() (leak_cpp_interior.cpp:116)
+ by 0x........: main (leak_cpp_interior.cpp:131)

LEAK SUMMARY:
definitely lost: 8 bytes in 1 blocks

Modified: trunk/memcheck/tests/leak_cpp_interior.stderr.exp-solaris
==============================================================================
--- trunk/memcheck/tests/leak_cpp_interior.stderr.exp-solaris (original)
+++ trunk/memcheck/tests/leak_cpp_interior.stderr.exp-solaris Tue Jan 31 18:22:20 2017
@@ -2,8 +2,8 @@
valgrind output will go to log
VALGRIND_DO_LEAK_CHECK
4 bytes in 1 blocks are definitely lost in loss record ... of ...
- by 0x........: doit() (leak_cpp_interior.cpp:115)
- by 0x........: main (leak_cpp_interior.cpp:130)
+ by 0x........: doit() (leak_cpp_interior.cpp:116)
+ by 0x........: main (leak_cpp_interior.cpp:131)

LEAK SUMMARY:
definitely lost: 4 bytes in 1 blocks

Loading...