]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
fix test list1 801/head
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Wed, 5 Jul 2017 23:07:12 +0000 (00:07 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Wed, 5 Jul 2017 23:07:12 +0000 (00:07 +0100)
$ cd tests && ./list1
...
ERROR: rrdcached@unix:/home/alan/src/rrdtool-1.x/tests/list1-rrdcached.sock
: Usage: LIST [RECURSIVE] /[<path>]

tests/list1

index 040d33d8b1450b03ec53d7d4422882b3a217359b..9cfd25e7a3b6b2967a5fd6923c72083c532e9e7b 100755 (executable)
@@ -88,7 +88,7 @@ if is_cached; then
 
         # rrdcached-specific tests
         ( cd "$LIST_DIR"; ln -s /tmp ./; )
-        list_count=`$RRDTOOL list "$CACHED_DIR" | grep -c '^tmp$'`
+        list_count=`$RRDTOOL list "/$CACHED_DIR" | grep -c '^tmp$'`
         test $list_count -eq 0
         report "escape from cached basedir via symlink denied"