Aaron Jacobs
97dd87f56d
Fixed some build errors.
2015-03-17 12:44:42 +11:00
Aaron Jacobs
81b9b0e737
Added a test stub.
2015-03-17 12:44:12 +11:00
Aaron Jacobs
c79c1d8455
Implemented public functions.
2015-03-17 12:40:51 +11:00
Aaron Jacobs
56f503accd
Declared the interface for a file system to help with testing caching.
...
For the testing work in #1 .
2015-03-17 12:38:15 +11:00
Aaron Jacobs
920a7445eb
Fixed some accidental Jello.
2015-03-16 14:04:03 +11:00
Aaron Jacobs
d6218a3538
Updated pwrite tests for Linux.
2015-03-16 14:02:54 +11:00
Aaron Jacobs
bf21976965
Updated "rmdir while opened for reading" tests for Linux.
2015-03-16 13:59:23 +11:00
Aaron Jacobs
acff636a2e
Removed an assertion that doesn't pass on OS X.
...
For whatever reason, the directory shows up with Nlink == 2 there.
2015-03-16 13:58:36 +11:00
Aaron Jacobs
b064d6b33f
Revised "rmdir while open for reading" tests for Linux's behavior.
2015-03-16 13:56:21 +11:00
Aaron Jacobs
4c280e82ac
Added PosixTest.RmdirWhileOpenedForReading.
2015-03-16 13:47:42 +11:00
Aaron Jacobs
ab3c91cdd8
Fixed some permissions issues on Linux.
2015-03-16 13:44:46 +11:00
Aaron Jacobs
27c8c0df9c
Added a public note about default_permissions.
2015-03-16 13:44:18 +11:00
Aaron Jacobs
bc46008754
Mount memfs with the default_permissions option.
...
This is necessary on Linux to make MemFSTest.Mkdir_PermissionDenied
pass, for the reasons outlined in commit e31cb17
. I don't quite
understand why it doesn't come up on OS X.
2015-03-16 13:41:01 +11:00
Aaron Jacobs
e31cb17e9c
Added some comments about default_permissions.
2015-03-16 13:40:04 +11:00
Aaron Jacobs
3181e6495b
Be explicit about ownership info for memfs.
2015-03-16 13:27:41 +11:00
Aaron Jacobs
6aaf89f972
Fixed MemFSTest.Chtimes.
...
Linux apparently doesn't like setting atime to time.Time{}.
2015-03-16 13:03:15 +11:00
Aaron Jacobs
2f7eff5981
Fixed umask-related issues in permissions tests.
2015-03-16 13:00:44 +11:00
Aaron Jacobs
e4005a4fb9
Removed applyUmask where it doesn't apply.
2015-03-16 13:00:11 +11:00
Aaron Jacobs
84fe345196
Defined applyUmask.
2015-03-16 13:00:01 +11:00
Aaron Jacobs
2d607d4b3d
Declared an applyUmask helper.
2015-03-16 12:55:51 +11:00
Aaron Jacobs
875da60ed0
Made memfs_test build and run on linux, too.
2015-03-16 12:46:43 +11:00
Aaron Jacobs
f47428398e
Added linux support.
2015-03-16 12:43:35 +11:00
Aaron Jacobs
3b5a04f79d
Use the new matchers.
2015-03-16 12:42:02 +11:00
Aaron Jacobs
e283dcf1bc
Added an NlinkIs matcher.
2015-03-16 12:38:17 +11:00
Aaron Jacobs
31da208636
Implemented BirthtimeIs for darwin.
2015-03-16 12:34:11 +11:00
Aaron Jacobs
9489817fc6
Fixed a build error.
2015-03-16 12:27:57 +11:00
Aaron Jacobs
e264d64ef3
Defined extractMtime for darwin.
2015-03-16 12:26:21 +11:00
Aaron Jacobs
f3df183df0
Fixed a build error.
2015-03-16 12:24:40 +11:00
Aaron Jacobs
47570943e4
Implemented MtimeIs.
2015-03-16 12:23:25 +11:00
Aaron Jacobs
72b8c3e9a0
Declared two time-related matchers.
2015-03-16 12:18:06 +11:00
Aaron Jacobs
46edbf19df
Fixed incorrect handling of expiration times in the past.
2015-03-16 11:54:53 +11:00
Aaron Jacobs
7e4aefc8db
Implemented convertExpirationTime.
2015-03-16 11:40:01 +11:00
Aaron Jacobs
c73fe39526
Removed server.clock.
...
Its presence was confusing because it is never anything but the real
clock.
2015-03-16 11:35:11 +11:00
Aaron Jacobs
5cf906e3ad
Declared a choke point for fixing expiration times.
2015-03-16 11:34:48 +11:00
Aaron Jacobs
1d3cb2493e
Added server support for Release.
2015-03-08 21:42:22 -05:00
Aaron Jacobs
a3e2e1fca1
Added EINVAL.
2015-03-08 17:13:43 -05:00
Aaron Jacobs
067cbee281
Added unlink support.
2015-03-06 23:34:11 -06:00
Aaron Jacobs
c1d117ad7f
Fixed some test bugs.
2015-03-06 23:33:59 -06:00
Aaron Jacobs
5f1b960b2e
Disabled a test that can't pass.
2015-03-06 23:32:26 -06:00
Aaron Jacobs
07bef0b128
Implemented memFS.Unlink.
2015-03-06 23:29:47 -06:00
Aaron Jacobs
731de36a27
Added server support for Unlink.
2015-03-06 23:28:24 -06:00
Aaron Jacobs
a113de2e87
Added NotImplementedFileSystem.Unlink.
2015-03-06 23:27:31 -06:00
Aaron Jacobs
77165f118a
Added an Unlink method.
2015-03-06 23:27:10 -06:00
Aaron Jacobs
125491a6e9
Finished filling out MemFSTest TODOs.
2015-03-06 23:18:50 -06:00
Aaron Jacobs
df6feb98c5
MemFSTest.ReadDirWhileModifying
2015-03-06 23:18:30 -06:00
Aaron Jacobs
659e2e61bd
Added links for a code walk.
2015-03-06 22:45:16 -06:00
Aaron Jacobs
5b07c5da52
Added a test for directory link behavior.
2015-03-06 22:39:45 -06:00
Aaron Jacobs
b53eac308c
Deleted a redundant test.
2015-03-06 22:35:57 -06:00
Aaron Jacobs
c9cd78eef2
MemFSTest.UnlinkFile_StillOpen
2015-03-06 22:31:44 -06:00
Aaron Jacobs
e8c884f82b
MemFSTest.UnlinkFile_NonExistent
2015-03-06 22:22:46 -06:00