]> git.ipfire.org Git - thirdparty/libvirt.git/commit
openvz: Add simple test for openvzReadNetworkConf
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 31 May 2011 12:58:58 +0000 (14:58 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 1 Jun 2011 09:58:15 +0000 (11:58 +0200)
commitd6caacd1e439e0ee1f7aa5b3039fdb84f1164700
treed23bbc97e345790525d0aefadee433e33061f8f4
parentd173c12fe01bbc8892f93beaaa9c1ee4da3ff28f
openvz: Add simple test for openvzReadNetworkConf

Convert openvzLocateConfFile to a replaceable function pointer to
allow testing the config file parsing without rewriting the whole
OpenVZ config parsing to a more testable structure.
src/openvz/openvz_conf.c
src/openvz/openvz_conf.h
tests/openvzutilstest.c
tests/openvzutilstest.conf