aboutsummaryrefslogtreecommitdiff
path: root/test-suite/Makefile
diff options
context:
space:
mode:
authorJason Gross2019-12-18 18:16:13 -0500
committerJason Gross2019-12-19 09:13:20 -0500
commit6b309b4297f28fcc6774ac3a19ab830713ec5e62 (patch)
treee98040ddea6b91ec38b1cf591086115b58fc5552 /test-suite/Makefile
parent4a402fe71e79fd005f7c03a9b5cc0d0a30dc9fe9 (diff)
Fix complexity test-suite failure reporting on Win
Apparently `expr 1 \+ 1` is fine on Linux but not cygwin/Windows, where it fails with "syntax error". Similarly for `-` and `/`.
Diffstat (limited to 'test-suite/Makefile')
-rw-r--r--test-suite/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-suite/Makefile b/test-suite/Makefile
index 609a61226b..7e2ef3bc75 100644
--- a/test-suite/Makefile
+++ b/test-suite/Makefile
@@ -544,7 +544,7 @@ $(addsuffix .log,$(wildcard complexity/*.v)): %.v.log: %.v $(PREREQUISITELOG)
true "find expected time * 100"; \
exp=`sed -n -e "s/(\*.*Expected time < \([0-9]\).\([0-9][0-9]\)s.*\*)/\1\2/p" "$<"`; \
true "compute corrected effective time, rounded up"; \
- rescorrected=`expr \( $$res \* $(bogomips) \+ 6120 \- 1 \) \/ 6120`; \
+ rescorrected=`expr \( $$res \* $(bogomips) + 6120 - 1 \) / 6120`; \
ok=`expr \( $$res \* $(bogomips) \) "<" \( $$exp \* 6120 \)`; \
if [ "$$ok" = 1 ]; then \
echo $(log_success); \