summaryrefslogtreecommitdiff
path: root/src/pkg/log
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-27 11:20:15 -0700
committerRuss Cox <rsc@golang.org>2009-08-27 11:20:15 -0700
commite0347fcfd827558d7b7a15995d61a17cb080b11d (patch)
tree4630cb5e26c85e719c02e5a360c3eaa04f42748f /src/pkg/log
parent43f160a74b60cb31146233bca5bd967539799aea (diff)
downloadgolang-e0347fcfd827558d7b7a15995d61a17cb080b11d.tar.gz
remove Line in bufio.ReadLine(Bytes|Slice|String)
also drop bool arg from ReadString R=r DELTA=45 (13 added, 1 deleted, 31 changed) OCL=33923 CL=33960
Diffstat (limited to 'src/pkg/log')
-rw-r--r--src/pkg/log/log_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/log/log_test.go b/src/pkg/log/log_test.go
index 12f732632..52be6803d 100644
--- a/src/pkg/log/log_test.go
+++ b/src/pkg/log/log_test.go
@@ -59,10 +59,11 @@ func testLog(t *testing.T, flag int, prefix string, pattern string, useLogf bool
} else {
l.Log("hello", 23, "world");
}
- line, err3 := buf.ReadLineString('\n', false);
+ line, err3 := buf.ReadString('\n');
if err3 != nil {
t.Fatal("log error", err3);
}
+ line = line[0:len(line)-1];
pattern = "^"+pattern+"hello 23 world$";
matched, err4 := regexp.MatchString(pattern, line);
if err4 != nil{