summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-03-10 11:48:20 +0000
committerGordon Sim <gsim@apache.org>2010-03-10 11:48:20 +0000
commit2312ac871432b83b928be9f7403854ca7ef3af7a (patch)
tree58f3ff546ab481134feed365e8b977b59d7d5587 /cpp
parent822b3c8d4f3ccea6b24cfbd50a78f5bd703f4fdd (diff)
downloadqpid-python-2312ac871432b83b928be9f7403854ca7ef3af7a.tar.gz
QPID-2441: patch from Jan Sarenik that prevents verification failures when running the examples if locale is not as expected
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@921319 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/examples/pub-sub/verify_python_cpp.in8
-rwxr-xr-xcpp/examples/verify1
-rwxr-xr-xcpp/examples/verify_all2
3 files changed, 6 insertions, 5 deletions
diff --git a/cpp/examples/pub-sub/verify_python_cpp.in b/cpp/examples/pub-sub/verify_python_cpp.in
index 52e8db9d72..f2871eb743 100644
--- a/cpp/examples/pub-sub/verify_python_cpp.in
+++ b/cpp/examples/pub-sub/verify_python_cpp.in
@@ -5,6 +5,10 @@ Declaring queue: news
Declaring queue: usa
Declaring queue: weather
Listening for messages ...
+Message: That's all, folks! from europe
+Message: That's all, folks! from news
+Message: That's all, folks! from usa
+Message: That's all, folks! from weather
Message: europe.news 0 from europe
Message: europe.news 0 from news
Message: europe.news 1 from europe
@@ -25,10 +29,6 @@ Message: europe.weather 3 from europe
Message: europe.weather 3 from weather
Message: europe.weather 4 from europe
Message: europe.weather 4 from weather
-Message: That's all, folks! from europe
-Message: That's all, folks! from news
-Message: That's all, folks! from usa
-Message: That's all, folks! from weather
Message: usa.news 0 from news
Message: usa.news 0 from usa
Message: usa.news 1 from news
diff --git a/cpp/examples/verify b/cpp/examples/verify
index 43e1206a0c..9a1ed078d6 100755
--- a/cpp/examples/verify
+++ b/cpp/examples/verify
@@ -19,6 +19,7 @@
# under the License.
#
+export LC_ALL=C
# Driver script to verify installed examples (also used for build tests.)
#
diff --git a/cpp/examples/verify_all b/cpp/examples/verify_all
index baffd422ad..9d71c7498a 100755
--- a/cpp/examples/verify_all
+++ b/cpp/examples/verify_all
@@ -48,7 +48,7 @@ if test -z "$exclude_regexp"; then
run_examples=$all_examples
else
for f in $all_examples; do
- { cat $f | grep $exclude_regexp > /dev/null ; } || run_examples="$run_examples $f"
+ { echo $f | grep $exclude_regexp > /dev/null ; } || run_examples="$run_examples $f"
done
fi
$verify $topsrcdir $topbuilddir $run_examples