* [gentoo-commits] proj/gcc-config:master commit in: /, tests/multi-native-selected-configs/
@ 2012-08-18 3:55 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2012-08-18 3:55 UTC (permalink / raw
To: gentoo-commits
commit: 7f30cd15401b7c9d22af0690ee03f2c40415b502
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 18 03:54:29 2012 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Aug 18 03:54:29 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git;a=commit;h=7f30cd15
gcc-config: fix relative ROOT handling
Fix suggested by Greg.
URL: https://bugs.gentoo.org/431104
Reported-by: Greg Turner <gmturner007 <AT> ameritech.net>
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
---
gcc-config | 2 +-
tests/multi-native-selected-configs/test.list | 8 +++++++-
tests/multi-native-selected-configs/test.list.exp | 10 ++++++++++
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/gcc-config b/gcc-config
index c545974..9cf69fb 100755
--- a/gcc-config
+++ b/gcc-config
@@ -8,7 +8,7 @@
: ${ROOT:=/}
[[ ${ROOT} != */ ]] && ROOT="${ROOT}/"
-[[ ${ROOT} != /* ]] && ROOT="${PWD}${ROOT}"
+[[ ${ROOT} != /* ]] && ROOT="${PWD%/}/${ROOT}"
cd /
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-18 3:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-18 3:55 [gentoo-commits] proj/gcc-config:master commit in: /, tests/multi-native-selected-configs/ Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox