From 39f3c9de0babbe54cecb4cee5b163bf72eab61f4 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 5 Oct 2012 10:32:49 +0200 Subject: [PATCH] test: check data_percent is equal to snap_percent --- test/api/percent.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/api/percent.c b/test/api/percent.c index db686d7d8..c5fa434bd 100644 --- a/test/api/percent.c +++ b/test/api/percent.c @@ -23,6 +23,7 @@ int main(int argc, char *argv[]) vg_t vg = NULL; lv_t lv; struct lvm_property_value v; + struct lvm_property_value d; handle = lvm_init(NULL); assert(handle); @@ -51,6 +52,10 @@ int main(int argc, char *argv[]) assert(v.is_valid); assert(v.value.integer == 50 * PERCENT_1); + d = lvm_lv_get_property(lv, "data_percent"); + assert(d.is_valid); + assert(d.value.integer == v.value.integer); + lvm_vg_close(vg); lvm_quit(handle); -- 2.43.5