mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 13:36:36 +01:00
tests: guix-environment.sh: Use C_INCLUDE_PATH, not CPATH.
* tests/guix-environment.sh: In tests that verify that the search paths are
set up correctly, check C_INCLUDE_PATH instead of CPATH. This fixes a test
failure, which was likely introduced in commit
2073b55e6b
. That commit switched gcc back to
using C_INCLUDE_PATH instead of CPATH, but it did not update this test.
This commit is contained in:
parent
7b528a0333
commit
e8b83e7579
1 changed files with 4 additions and 4 deletions
|
@ -192,7 +192,7 @@ then
|
|||
|
||||
# Make sure the bootstrap binaries are all listed where they belong.
|
||||
grep -E "^export PATH=\"$profile/bin\"" "$tmpdir/a"
|
||||
grep -E "^export CPATH=\"$profile/include\"" "$tmpdir/a"
|
||||
grep -E "^export C_INCLUDE_PATH=\"$profile/include\"" "$tmpdir/a"
|
||||
grep -E "^export LIBRARY_PATH=\"$profile/lib\"" "$tmpdir/a"
|
||||
for dep in bootstrap-binaries-0 gcc-bootstrap-0 glibc-bootstrap-0
|
||||
do
|
||||
|
@ -206,8 +206,8 @@ then
|
|||
# as returned by '--search-paths'.
|
||||
guix environment --bootstrap --no-substitutes --pure \
|
||||
-e '(@ (guix tests) gnu-make-for-tests)' \
|
||||
-- /bin/sh -c 'echo $PATH $CPATH $LIBRARY_PATH' > "$tmpdir/b"
|
||||
( . "$tmpdir/a" ; echo $PATH $CPATH $LIBRARY_PATH ) > "$tmpdir/c"
|
||||
-- /bin/sh -c 'echo $PATH $C_INCLUDE_PATH $LIBRARY_PATH' > "$tmpdir/b"
|
||||
( . "$tmpdir/a" ; echo $PATH $C_INCLUDE_PATH $LIBRARY_PATH ) > "$tmpdir/c"
|
||||
cmp "$tmpdir/b" "$tmpdir/c"
|
||||
|
||||
rm "$tmpdir"/*
|
||||
|
@ -228,7 +228,7 @@ then
|
|||
|
||||
# Make sure the bootstrap binaries are all listed where they belong.
|
||||
grep -E "^export PATH=\"$profile/bin\"" "$tmpdir/a"
|
||||
grep -E "^export CPATH=\"$profile/include\"" "$tmpdir/a"
|
||||
grep -E "^export C_INCLUDE_PATH=\"$profile/include\"" "$tmpdir/a"
|
||||
grep -E "^export LIBRARY_PATH=\"$profile/lib\"" "$tmpdir/a"
|
||||
for dep in bootstrap-binaries-0 gcc-bootstrap-0 glibc-bootstrap-0 \
|
||||
guile-bootstrap
|
||||
|
|
Loading…
Reference in a new issue