This was noticed when building expr in coreutils
with -fsanitize=memory, which induced false failures
resulting in an infinite loop.
* tests/init.sh: Break from the loop if there's an issue with expr(1).
+2025-09-15 Pádraig Brady <P@draigBrady.com>
+
+ tests: avoid infinite loop in init.sh
+ * tests/init.sh: Break from the loop if there's an issue with expr(1).
+
2025-09-15 Pádraig Brady <P@draigBrady.com>
cpu-supports: relicense under LGPL
err_=`mkdir -m 0700 "$candidate_dir_" 2>&1` \
&& { echo "$candidate_dir_"; return; }
test $MAX_TRIES_ -le $i_ && break;
- i_=`expr $i_ + 1`
+ i_=`expr $i_ + 1` || break
done
fail_ "$err_"
}