From 1700668d783220957a2ad0d1f4f963be58b687f7 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 15 Mar 2013 19:58:00 +0100 Subject: tests: add #96 #558 and #1330 These verfy that the 'memory tracking' subsystem is actually doing its job when using curl tool (#96), a test in libtest (#558) and also a unit test (#1330), in order to prevent regressions in this functionallity. --- tests/data/test558 | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tests/data/test558 (limited to 'tests/data/test558') diff --git a/tests/data/test558 b/tests/data/test558 new file mode 100644 index 000000000..49d022610 --- /dev/null +++ b/tests/data/test558 @@ -0,0 +1,52 @@ + + + +TrackMemory + + + +# +# Server-side + + + +# Client-side + + +none + + +TrackMemory + +# tool is what to use instead of 'curl' + +lib558 + + + +libtest memory tracking operational + + +nothing + + + +# +# Verify data after the test has been "shot" + + +MEM ../../../tests/libtest/lib558.c: malloc() +MEM ../../../tests/libtest/lib558.c: free() +MEM ../../lib/escape.c: malloc() +MEM ../../lib/escape.c: realloc() +MEM ../../lib/escape.c: realloc() +MEM ../../lib/escape.c: free() + + +s/ =.*// +s/\(.*\)/()/ +s/:\d+/:/ + + + + -- cgit v1.2.3