summaryrefslogtreecommitdiff
path: root/src/pkg/os/os_test.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+1058
2011-09-13Imported Upstream version 60Ondřej Surý1-1052/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-11/+37
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-4/+88
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-2/+32
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-37/+61
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-5/+7
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-140/+280
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-19os: add Chtimes functionBrad Fitzpatrick1-0/+42
R=rsc, r CC=golang-dev http://codereview.appspot.com/1103041 Committer: Russ Cox <rsc@golang.org>
2010-04-28Remove destination of symlink test in case it got left behindIan Lance Taylor1-0/+1
earlier. R=rsc CC=golang-dev http://codereview.appspot.com/972045
2010-04-22FileInfo: regularize the types of some fields.Rob Pike1-8/+8
Uid, Gid become int. File size info becomes int64. Times become int64. R=rsc, cw CC=golang-dev http://codereview.appspot.com/968042
2010-04-08fix bug in os_test.go checkModeAlex Brainman1-1/+1
R=golang-dev, r CC=golang-dev http://codereview.appspot.com/872043 Committer: Rob Pike <r@golang.org>
2010-02-25strings: delete Runes, BytesRuss Cox1-3/+3
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-01-26os: in test, allow Hostname to return FQDN even if /bin/hostname does notIcarus Sparry1-1/+6
Hostname reads the file /proc/sys/kernel/hostname to determine the value it returns. Some people set this to a Fully Qualified Doamin Name. At least one implementation of /bin/hostname truncates the name it gets (often from the "uname" system call) at the first dot unless it is given a "-f" flag. This change makes the unit test also truncate at the first dot and checks if the strings then match. This seems more portable than adding an extra flag to the called /bin/hostname program. R=rsc CC=golang-dev http://codereview.appspot.com/181097 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer1-183/+183
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049
2009-12-04Add os.Rename.Ian Lance Taylor1-0/+21
R=rsc http://codereview.appspot.com/166058
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike1-1/+2
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
2009-11-12os.TestSeek: use a smaller but still 64-bit seek offset.Russ Cox1-3/+8
Might fix issue 91. R=r http://codereview.appspot.com/152108
2009-11-11os test: do not use symlink > 255 bytes.Russ Cox1-1/+2
Fixes issue 62. R=r http://codereview.appspot.com/152080
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-5/+5
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-90/+90
R=rsc, r http://go/go-review/1025029
2009-11-08assorted cleanupRuss Cox1-1/+1
R=r, iant CC=go-dev http://go/go-review/1025024
2009-11-01reverse the arguments to io.Copy so the destination is on theRob Pike1-2/+2
left, like an assignment, like strcpy, etc. R=rsc CC=go-dev http://go/go-review/1016011
2009-11-01os cleanup.Russ Cox1-10/+10
dir_* and stat_* are just os specific, not os+arch-specific. R=r http://go/go-review/1018010
2009-10-06apply gofmt to malloc math once osRuss Cox1-44/+44
R=gri DELTA=566 (4 added, 14 deleted, 548 changed) OCL=35410 CL=35419
2009-09-17use buf.String() instead of string(buf.Bytes())Rob Pike1-2/+2
use strings.Buffer instead of bytes.Buffer in some places R=rsc DELTA=40 (0 added, 3 deleted, 37 changed) OCL=34770 CL=34775
2009-09-16rename bytes.Buffer.Data() to bytes.Buffer.Bytes()Rob Pike1-2/+2
R=rsc DELTA=152 (6 added, 0 deleted, 146 changed) OCL=34695 CL=34701
2009-09-15more "declared and not used".Russ Cox1-7/+7
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-08-27os.File.ReadAt/WriteAtRuss Cox1-0/+40
R=r DELTA=84 (81 added, 0 deleted, 3 changed) OCL=34006 CL=34006
2009-08-12convert low-level (used by testing) packages toRuss Cox1-2/+2
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
2009-07-15/usr/local/bin might not exist so use /usr/bin in the chdir test.Rob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=31708 CL=31713
2009-06-29io.StringBytes -> strings.BytesRuss Cox1-5/+6
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
2009-06-29add os.HostnameRuss Cox1-0/+40
R=r DELTA=188 (182 added, 3 deleted, 3 changed) OCL=30856 CL=30860
2009-06-25Change os.Error convention:Russ Cox1-0/+38
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox1-5/+5
remove io.ErrEOF. rename io.FullRead to io.ReadFull, to match ReadAtLeast and ReadAll. remove io.FullReader, because it is now unused. R=r DELTA=295 (88 added, 105 deleted, 102 changed) OCL=30544 CL=30588
2009-06-16386 system call fixes:Russ Cox1-6/+8
* use 64-bit file system calls (Linux, Darwin) * use 32-bit [sic] uid/gid calls (Linux) * fix sockets on Linux Darwin/386 works again. Linux/386 is better but must never have worked; there are still bugs surrounding the creation of new threads in the runtime package. R=austin DELTA=1332 (673 added, 614 deleted, 45 changed) OCL=30327 CL=30380
2009-06-09mv src/lib to src/pkgRob Pike1-0/+549
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102