]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make the run_openmp_test work again with bash, and optimize it slightly.
authorBart Van Assche <bvanassche@acm.org>
Sat, 22 Mar 2008 09:36:23 +0000 (09:36 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 22 Mar 2008 09:36:23 +0000 (09:36 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7748

exp-drd/tests/run_openmp_test

index 82b9954a16fdda3610f2da602eb6c50a99a39f48..871a31205ccdaee69fcca31c35f87bb62a31aaf8 100755 (executable)
@@ -18,14 +18,16 @@ if [ "$(uname)" = Linux ]; then
   # nothing. The second case occurs if gcc has been compiled with 
   # --disable-linux-futex, and the last case occurs if gcc has been compiled
   # with --enable-linux-futex.
-  rc="$(nm "${libgomp_path}" 2>&1
+  rc="$(nm "${libgomp_path}" 2>&1 \
         |
         while read line
         do
           if [ "${line%: no symbols}" != "${line}" ]; then
             echo 1
+            break
           elif [ "${line% gomp_barrier_init}" != "${line}" ]; then
             echo 0
+            break
           fi
         done)"
   exit ${rc:-1}