From d1fc43a9adf4a15f6c9e55ea704352adf4538bd0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 22 Mar 2008 09:36:23 +0000 Subject: [PATCH] Make the run_openmp_test work again with bash, and optimize it slightly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7748 --- exp-drd/tests/run_openmp_test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} -- 2.47.3