From f16bbc1b1a2ac6c9c74d6f919d3b1901ec8ccb34 Mon Sep 17 00:00:00 2001 From: David Allsopp Date: Thu, 25 Apr 2024 10:31:24 +0100 Subject: [PATCH] Add test for #5838 MANPATH should appear in opam env --revert --- master_changes.md | 1 + tests/reftests/env.win32.test | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/master_changes.md b/master_changes.md index 809d9cc1fc7..e71c0bcf5ca 100644 --- a/master_changes.md +++ b/master_changes.md @@ -120,6 +120,7 @@ users) * Update opam root version test with root version bump [#5904 @rjbou] * env tests: use `sort` to increase stability of the `opam env` output [#5935 @dra27 @rjbou] * env.win32: add mixed slashes test [#5935 @dra27] + * env.win32: add test for environment revert not working correctly for Unix-like variables on Windows [#5935 @dra27] ### Engine * Add `sort` command [#5935 @dra27] diff --git a/tests/reftests/env.win32.test b/tests/reftests/env.win32.test index 812fdf67d24..df018e4a9ce 100644 --- a/tests/reftests/env.win32.test +++ b/tests/reftests/env.win32.test @@ -1,6 +1,10 @@ N0REP0 ### : setenv & build env rewriting : ### opam switch create rewriting --empty +### : Test for #5838 +### opam env | grep MANPATH +MANPATH=':"${BASEDIR}/OPAM/rewriting/man"'; export MANPATH; +### opam exec -- opam env --revert | grep MANPATH ### : Tests forward and backslash rewriting on revert ### : This sequence of updates is what presently happens with the compiler ###