From: Ian Lance Taylor Date: Wed, 21 Jan 2009 19:56:47 +0000 (-0800) Subject: sys.readfile has been removed. Remove the test case for it. X-Git-Tag: weekly.2009-11-06~2320 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=87b1f05dbe96d799e6a7ecfa6671f819d5090242;p=gostls13.git sys.readfile has been removed. Remove the test case for it. It was disabled last week anyhow. R=r,rsc DELTA=24 (0 added, 24 deleted, 0 changed) OCL=23205 CL=23220 --- diff --git a/test/readfile.go b/test/readfile.go deleted file mode 100644 index 4853fd20e2..0000000000 --- a/test/readfile.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// # $G $F.go && $L $F.$A && ./$A.out readfile.go -// # This is some data we can recognize - -package main - -func main() { - var s string; - var ok bool; - - s, ok = sys.readfile("readfile.go"); - if !ok { - print("couldn't readfile\n"); - sys.Exit(1) - } - start_of_file := - "// $G $F.go && $L $F.$A && ./$A.out readfile.go\n" + - "// # This is some data we can recognize\n" + - "\n" + - "package main\n"; - if s[0:102] != start_of_file { - print("wrong data\n"); - sys.Exit(1) - } -}