From: Bart Van Assche Date: Sat, 22 Mar 2008 09:36:23 +0000 (+0000) Subject: Make the run_openmp_test work again with bash, and optimize it slightly. X-Git-Tag: svn/VALGRIND_3_4_0~825 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1fc43a9adf4a15f6c9e55ea704352adf4538bd0;p=thirdparty%2Fvalgrind.git Make the run_openmp_test work again with bash, and optimize it slightly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7748 --- diff --git a/exp-drd/tests/run_openmp_test b/exp-drd/tests/run_openmp_test index 82b9954a16..871a31205c 100755 --- a/exp-drd/tests/run_openmp_test +++ b/exp-drd/tests/run_openmp_test @@ -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}