summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-01-21 11:56:47 -0800
committerIan Lance Taylor <iant@golang.org>2009-01-21 11:56:47 -0800
commit97e447d4ccbce89e8cbac7bd3f3ce0c60b3a7f01 (patch)
tree0c36fceffb70535ad78f2e3e54f4827b416076e4
parentd87bfeb15128c6443292fec1a392304876355c9f (diff)
downloadgolang-97e447d4ccbce89e8cbac7bd3f3ce0c60b3a7f01.tar.gz
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
-rw-r--r--test/readfile.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/readfile.go b/test/readfile.go
deleted file mode 100644
index 4853fd20e..000000000
--- 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)
- }
-}