tests: Gracefully shut down ovsdb-server, to avoid valgrind leak warnings.
authorBen Pfaff <blp@nicira.com>
Wed, 28 Mar 2012 21:06:54 +0000 (14:06 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 28 Mar 2012 21:55:26 +0000 (14:55 -0700)
When ovsdb-server exits gracefully it frees all the memory that it owns,
which keeps valgrind from warning about "possibly lost" blocks.

Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/ofproto.at
tests/ovs-monitor-ipsec.at
tests/ovs-vsctl.at
tests/ovs-xapi-sync.at

index fdc72155d206f710ba0d6d0fda8dd25202790dbd..0f0fd1fd8ca7e8a1e30ebb47798edb24f16a8ca8 100644 (file)
@@ -527,4 +527,5 @@ ovs-appctl -t ovs-ofctl ofctl/send 0104001400000002000023200000000a00000001
 check_async 7 OFPR_ACTION OFPPR_ADD
 
 ovs-appctl -t ovs-ofctl exit
+OVS_VSWITCHD_STOP
 AT_CLEANUP
index c8de1decd7d82cecb098a6c9ad522491f8e9c6ae..befa8b76f929d150839debc541c9a07c8dda7f79 100644 (file)
@@ -309,4 +309,6 @@ sainfo anonymous {
 ])
 AT_CHECK([test ! -f etc/racoon/certs/ovs-3.4.5.6.pem])
 
+OVSDB_SERVER_SHUTDOWN
+
 AT_CLEANUP
index 4b17b05c617b6f85ecb25c75d55f79beb18cfa2f..584ee79b99a64a39fc620b8eef764026ce763502 100644 (file)
@@ -871,6 +871,7 @@ VSCTL_CHECK_FIND([other-config:x{>}x], [])
 VSCTL_CHECK_FIND([other-config:x{>}""], [])
 VSCTL_CHECK_FIND([other-config:x{>}y], [])
 VSCTL_CHECK_FIND([other-config:x{>}z], [])
+OVS_VSCTL_CLEANUP
 AT_CLEANUP
 
 AT_SETUP([database commands -- wait-until immediately true])
index d1c091a354496a25c1b21291a4b51c6c7356999a..c57bbc93c3461a3393fdae6e265569945251e73d 100644 (file)
@@ -72,4 +72,6 @@ AT_CHECK([ovs_vsctl get interface vif1.0 external-ids], [0],
   [{attached-mac="00:11:22:33:44:55", iface-id="custom iface ID", iface-status=active, vm-id="custom vm ID", xs-network-uuid="9b66c68b-a74e-4d34-89a5-20a8ab352d1e", xs-vif-uuid="6ab1b260-398e-49ba-827b-c7696108964c", xs-vm-uuid="fcb8a3f6-dc04-41d2-8b8a-55afd2b755b8"}
 ])
 
+OVSDB_SERVER_SHUTDOWN
+
 AT_CLEANUP