diff options
| author | Gaëtan Gilbert | 2018-06-18 14:26:23 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2018-06-22 15:15:02 +0200 |
| commit | de90280aa0895d5b302a3137a3fa1a171a9f127c (patch) | |
| tree | 7519e8b4c202c08367c25fa14b67a0a1997cda31 /test-suite | |
| parent | 0daf6af5949dbc7304e9fc3adf063519d5a60c4b (diff) | |
Fix #7704: get_toplevel_path needs normalised argv.(0)
When launched through PATH argv.(0) is just the command name.
eg "coqtop -compile foo.v" -> argv.(0) = "coqtop"
Using executable_name also follows symlinks but this isn't tested to
avoid messing with windows. Running Coq through a symlink is not as
important as PATH anyways.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/Makefile | 1 | ||||
| -rwxr-xr-x | test-suite/misc/7704.sh | 7 | ||||
| -rw-r--r-- | test-suite/misc/aux7704.v | 6 |
3 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/Makefile b/test-suite/Makefile index 32e245e362..33b4023272 100644 --- a/test-suite/Makefile +++ b/test-suite/Makefile @@ -519,6 +519,7 @@ $(patsubst %.sh,%.log,$(wildcard misc/*.sh)): %.log: %.sh $(PREREQUISITELOG) @echo "TEST $<" $(HIDE){ \ echo $(call log_intro,$<); \ + export BIN="$(BIN)"; \ export coqc="$(coqc)"; \ export coqtop="$(coqtop)"; \ export coqdep="$(coqdep)"; \ diff --git a/test-suite/misc/7704.sh b/test-suite/misc/7704.sh new file mode 100755 index 0000000000..0ca2c97d24 --- /dev/null +++ b/test-suite/misc/7704.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +export PATH=$BIN:$PATH + +${coqtop#"$BIN"} -compile misc/aux7704.v diff --git a/test-suite/misc/aux7704.v b/test-suite/misc/aux7704.v new file mode 100644 index 0000000000..6fdcf67684 --- /dev/null +++ b/test-suite/misc/aux7704.v @@ -0,0 +1,6 @@ + +Goal True /\ True. +Proof. + split. + par:exact I. +Qed. |
