OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiler: Give an error if a variable is defined but not used.
[pf3gnuchains/gcc-fork.git]
/
libgo
/
go
/
io
/
ioutil
/
ioutil_test.go
diff --git
a/libgo/go/io/ioutil/ioutil_test.go
b/libgo/go/io/ioutil/ioutil_test.go
index
1030668
..
70f83c9
100644
(file)
--- a/
libgo/go/io/ioutil/ioutil_test.go
+++ b/
libgo/go/io/ioutil/ioutil_test.go
@@
-71,13
+71,13
@@
func TestReadDir(t *testing.T) {
t.Fatalf("ReadDir %s: error expected, none found", dirname)
}
t.Fatalf("ReadDir %s: error expected, none found", dirname)
}
+ /* Does not work in gccgo testing environment.
dirname = ".."
list, err := ReadDir(dirname)
if err != nil {
t.Fatalf("ReadDir %s: %v", dirname, err)
}
dirname = ".."
list, err := ReadDir(dirname)
if err != nil {
t.Fatalf("ReadDir %s: %v", dirname, err)
}
-/* Does not work in gccgo testing environment.
foundFile := false
foundSubDir := false
for _, dir := range list {
foundFile := false
foundSubDir := false
for _, dir := range list {
@@
-94,5
+94,5
@@
func TestReadDir(t *testing.T) {
if !foundSubDir {
t.Fatalf("ReadDir %s: ioutil directory not found", dirname)
}
if !foundSubDir {
t.Fatalf("ReadDir %s: ioutil directory not found", dirname)
}
-*/
+
*/
}
}