]> granicus.if.org Git - graphviz/commitdiff
put rbtree sources in their own directory, build as a convenience library
authorellson <devnull@localhost>
Sun, 5 Oct 2008 03:22:07 +0000 (03:22 +0000)
committerellson <devnull@localhost>
Sun, 5 Oct 2008 03:22:07 +0000 (03:22 +0000)
lib/rbtree/simple_test.sh [new file with mode: 0755]

diff --git a/lib/rbtree/simple_test.sh b/lib/rbtree/simple_test.sh
new file mode 100755 (executable)
index 0000000..8610c70
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/sh
+eval `dmalloc -l logfile -i 100 high`
+./test_rb<<EOF
+1
+1
+1
+2
+1
+3
+1
+4
+1
+5
+7
+1
+9
+1 
+11
+1 
+-87
+3 
+10
+3 
+-87
+3 
+6
+4 
+3
+3 
+99
+5 
+2
+5 
+99
+5 
+1
+6
+-1
+10
+2
+2
+2
+4
+7
+8
+EOF
+
+grep "not freed" logfile | tee unfreed.txt
+
+echo "DMALLOC_OPTIONS were :"
+printenv DMALLOC_OPTIONS
+
+exit 0
\ No newline at end of file