X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fdaemon.at;h=f188e7cbc2e91b097340072050399b896df3a5da;hb=71baec0655e41bb93f125d162bc62cc9da0be73b;hp=69fff258c314c0afc36948703e4b16323f4d2faa;hpb=37d034580ad38d61f81559a5cd03d11b5468762a;p=openvswitch diff --git a/tests/daemon.at b/tests/daemon.at index 69fff258..f188e7cb 100644 --- a/tests/daemon.at +++ b/tests/daemon.at @@ -39,6 +39,11 @@ AT_CHECK( parent=`cat parent` && test $parentpid = $parent], [0], [], [], [kill `cat parent`]) +# Avoid a race between pidfile creation and notifying the parent, +# which can easily trigger if ovsdb-server is slow (e.g. due to valgrind). +OVS_WAIT_UNTIL( + [ovs-appctl --timeout=10 -t "`pwd`/unixctl" version], + [kill `cat pid`]) # Kill the daemon process, making it look like a segfault, # and wait for a new child process to get spawned. AT_CHECK([cp pid oldpid], [0], [], [], [kill `cat parent`])