You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2008/02/18 18:27:14 UTC
svn commit: r628827 - in /incubator/qpid/trunk/qpid: bin/verify
cpp/examples/Makefile.am
Author: aconway
Date: Mon Feb 18 09:27:11 2008
New Revision: 628827
URL: http://svn.apache.org/viewvc?rev=628827&view=rev
Log:
Added sleep to verify script to avoid startup races.
Modified:
incubator/qpid/trunk/qpid/bin/verify
incubator/qpid/trunk/qpid/cpp/examples/Makefile.am
Modified: incubator/qpid/trunk/qpid/bin/verify
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/bin/verify?rev=628827&r1=628826&r2=628827&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/bin/verify (original)
+++ incubator/qpid/trunk/qpid/bin/verify Mon Feb 18 09:27:11 2008
@@ -38,6 +38,8 @@
out=`outfile $*`
eval "$* $ARGS > $out &" || { fail; return 1; }
waitfor $out "$pattern"
+ # printing the ready message doesn't guarnatee we're ready, so sleep a bit.
+ sleep 1
}
name() {
@@ -79,7 +81,7 @@
fi
for example in "$@"; do
- echo -n "$example : "
+ echo -n "== $example "
if ( verify $example; ) then echo "PASS"; else echo "FAIL"; RET=1; fi
done
exit $RET
Modified: incubator/qpid/trunk/qpid/cpp/examples/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/examples/Makefile.am?rev=628827&r1=628826&r2=628827&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/examples/Makefile.am (original)
+++ incubator/qpid/trunk/qpid/cpp/examples/Makefile.am Mon Feb 18 09:27:11 2008
@@ -44,7 +44,9 @@
EXTRA_DIST=$(nobase_pkgdata_DATA) $(VERIFY_FILES)
-verify:
+force:
+
+verify: force
cp $(top_srcdir)/../bin/verify $@
# Note: we don't use normal automake SUBDIRS because the example