summaryrefslogtreecommitdiff
path: root/tests/data/test96
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-03-15 19:58:00 +0100
committerYang Tse <yangsita@gmail.com>2013-03-15 19:59:51 +0100
commit1700668d783220957a2ad0d1f4f963be58b687f7 (patch)
treeb38fa3310b60e9e2b6b2c981c05fccc2a55c6b49 /tests/data/test96
parenta8f93d4efc07cd445843b5bc82a3b38653744868 (diff)
downloadcurl-1700668d783220957a2ad0d1f4f963be58b687f7.tar.gz
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.
Diffstat (limited to 'tests/data/test96')
-rw-r--r--tests/data/test9643
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/data/test96 b/tests/data/test96
new file mode 100644
index 000000000..9ea0ce752
--- /dev/null
+++ b/tests/data/test96
@@ -0,0 +1,43 @@
+<testcase>
+<info>
+<keywords>
+TrackMemory
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+# Client-side
+<client>
+<server>
+none
+</server>
+<features>
+TrackMemory
+</features>
+
+<name>
+curl memory tracking operational
+</name>
+<command>
+--version
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<file name="log/memdump" mode="text">
+MEM ../../src/tool_paramhlp.c
+MEM ../../src/tool_cfgable.c
+</file>
+<stripfile>
+$_ = '' if (($_ !~ /tool_paramhlp/) && ($_ !~ /tool_cfgable/))
+s/:\d+.*//
+</stripfile>
+</verify>
+
+</testcase>