I've seen core files appear and then be automatically removed as the
test case was successful.  Such success is highly doubtful, so fail
the test cases if any core files exist at the end of the test.

Signed-off-by: Jarno Rajahalme <jrajaha...@nicira.com>
---
 tests/ofproto-macros.at |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at
index 77e064a..7b46c2a 100644
--- a/tests/ofproto-macros.at
+++ b/tests/ofproto-macros.at
@@ -119,6 +119,9 @@ m4_define([OVS_VSWITCHD_START],
 # and reports all WARN, ERR, EMER log entries.  User can add custom sed filters
 # in $1.
 m4_divert_push([PREPARE_TESTS])
+check_cores () {
+    find . -name "core*" -print
+}
 check_logs () {
     local logs
     for log in *.log; do
@@ -149,7 +152,8 @@ m4_divert_pop([PREPARE_TESTS])
 #
 #   OVS_VSWITCHD_STOP(["/expected error/d"])
 m4_define([OVS_VSWITCHD_STOP],
-  [AT_CHECK([check_logs $1])
+  [AT_CHECK([check_cores])
+   AT_CHECK([check_logs $1])
    AT_CHECK([ovs-appctl -t ovs-vswitchd exit])
    AT_CHECK([ovs-appctl -t ovsdb-server exit])])
 
-- 
1.7.10.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to