diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-08-17 23:54:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-08-17 23:54:29 -0400 |
commit | 7f30cd15401b7c9d22af0690ee03f2c40415b502 (patch) | |
tree | 83b28be593f635a1c4f657c4f279790e140f9214 /tests | |
parent | gcc-config: do not export GCC_SPECS for cross-compilers (diff) | |
download | gcc-config-7f30cd15401b7c9d22af0690ee03f2c40415b502.tar.gz gcc-config-7f30cd15401b7c9d22af0690ee03f2c40415b502.tar.bz2 gcc-config-7f30cd15401b7c9d22af0690ee03f2c40415b502.zip |
gcc-config: fix relative ROOT handling
Fix suggested by Greg.
URL: https://bugs.gentoo.org/431104
Reported-by: Greg Turner <gmturner007@ameritech.net>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/multi-native-selected-configs/test.list | 8 | ||||
-rw-r--r-- | tests/multi-native-selected-configs/test.list.exp | 10 |
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/multi-native-selected-configs/test.list b/tests/multi-native-selected-configs/test.list index 8e2a891..7c351a1 100644 --- a/tests/multi-native-selected-configs/test.list +++ b/tests/multi-native-selected-configs/test.list @@ -1,3 +1,9 @@ #!/bin/bash gcc-config -C -l "$@" -[[ $? -eq 0 ]] +[[ $? -eq 0 ]] || exit 1 + +( +cd "${ROOT}" +ROOT=. gcc-config -C -l "$@" +[[ $? -eq 0 ]] || exit 1 +) diff --git a/tests/multi-native-selected-configs/test.list.exp b/tests/multi-native-selected-configs/test.list.exp index 2bd4005..e2a79dd 100644 --- a/tests/multi-native-selected-configs/test.list.exp +++ b/tests/multi-native-selected-configs/test.list.exp @@ -8,3 +8,13 @@ Using gcc-config info in @ROOT@/ [4] x86_64-pc-linux-gnu-4.6.0 [5] x86_64-pc-linux-gnu-4.6.1 * [6] x86_64-pc-linux-gnu-4.6.2 +Using gcc-config info in @ROOT@/./ + [1] avr-4.5.3 * + + [2] powerpc64-unknown-linux-gnu-4.5.3 * + + [3] sh4-unknown-linux-gnu-4.5.3 * + + [4] x86_64-pc-linux-gnu-4.6.0 + [5] x86_64-pc-linux-gnu-4.6.1 * + [6] x86_64-pc-linux-gnu-4.6.2 |