Commit Graph

68 Commits (c7136958710e0a4ba0e18bce94624b573400be5c)

Author SHA1 Message Date
Aaron Jacobs c713695871 Fixed broken tests using Mount. 2015-03-17 15:27:40 +11:00
Aaron Jacobs 2d10e03395 Switched import paths to the bazilfuse fork. 2015-03-17 15:03:11 +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 b064d6b33f Revised "rmdir while open for reading" tests for Linux's behavior. 2015-03-16 13:56:21 +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 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 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 3b5a04f79d Use the new matchers. 2015-03-16 12:42:02 +11: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 df6feb98c5 MemFSTest.ReadDirWhileModifying 2015-03-06 23:18:30 -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
Aaron Jacobs 005e43cd24 MemFSTest.UnlinkFile_Exists 2015-03-06 22:19:52 -06:00
Aaron Jacobs 52f2e5fec5 MemFSTest.ModifyExistingFile_InSubDir 2015-03-06 22:18:05 -06:00
Aaron Jacobs bf0b773894 Added a test name. 2015-03-06 06:10:43 +11:00
Aaron Jacobs a7d2944d2e Support changing mtime. 2015-03-06 06:04:51 +11:00
Aaron Jacobs 76ac5cc264 MemFSTest.Chtimes 2015-03-06 06:02:43 +11:00
Aaron Jacobs c4de915491 MemFSTest.Chmod 2015-03-06 05:59:06 +11:00
Aaron Jacobs 1e38634464 MemFSTest.Truncate_Larger 2015-03-06 05:56:40 +11:00
Aaron Jacobs 910d3b2f9f Oops, preserve the size invariant. 2015-03-06 05:56:12 +11:00
Aaron Jacobs 9dc1d04623 MemFSTest.Truncate_Smaller 2015-03-06 05:54:20 +11:00
Aaron Jacobs 7173c5e9fb Added some test names. 2015-03-06 05:52:08 +11:00
Aaron Jacobs 632b1e6120 Added FileSystem.SetInodeAttributes. 2015-03-06 05:45:17 +11:00
Aaron Jacobs 1828931cce Don't attempt to track ctime. 2015-03-06 05:35:44 +11:00
Aaron Jacobs 650467fedb Update mtime for mkdir and rmdir. 2015-03-06 05:35:44 +11:00
Aaron Jacobs ea53ba8488 Don't attempt to track atime. 2015-03-06 05:35:43 +11:00
Aaron Jacobs 77fee50b80 Tightened up time tests. 2015-03-06 05:35:43 +11:00
Aaron Jacobs 62bda89ca9 MemFSTest.ModifyExistingFile_InRoot 2015-03-06 05:35:43 +11:00
Aaron Jacobs 3a2b0a6de4 MemFSTest.AppendMode 2015-03-06 05:35:43 +11:00
Aaron Jacobs b8ea62986f Dumped in posix tests. 2015-03-06 05:35:43 +11:00
Aaron Jacobs 0377d675dd MemFSTest.CreateNewFile_InSubDir 2015-03-06 05:35:42 +11:00
Aaron Jacobs 87f8ec9ead MemFSTest.CreateNewFile_InRoot 2015-03-04 15:10:26 +11:00
Aaron Jacobs 9c585268b0 Performed a TODO. 2015-03-04 15:06:40 +11:00
Aaron Jacobs 1a975d9824 Declared some test names. 2015-03-04 15:03:44 +11:00
Aaron Jacobs 8fc315cf58 MemFSTest.CaseSensitive 2015-03-04 14:21:56 +11:00
Aaron Jacobs b2a8322aaa Fixed copyright notices. 2015-03-04 08:27:42 +11:00
Aaron Jacobs a956166291 Deleted MemFSTest.Rmdir_ReusesInodeID.
At least on OS X, the kernel doesn't relaibly send a Forget request
right after RmDir, even if the directory is not open. (This is contrary
to what the fuse low-level ops documentation says.) So there's no way to
reliably test this.
2015-03-03 16:14:37 +11:00
Aaron Jacobs eec88dd31a Disabled a test that cannot pass. 2015-03-03 15:15:58 +11:00
Aaron Jacobs 147be0630d Added tests for the Nlink field. 2015-03-03 15:04:49 +11:00
Aaron Jacobs 140bd18863 Fixed a silly test bug. 2015-03-03 14:54:22 +11:00
Aaron Jacobs 8d9962ee62 MemFSTest.Rmdir_OpenedForReading 2015-03-03 14:52:03 +11:00
Aaron Jacobs 2773133448 MemFSTest.Rmdir_ReusesInodeID 2015-03-03 14:43:06 +11:00
Aaron Jacobs 01371975df Check for empty in rmdir. 2015-03-03 14:39:29 +11:00
Aaron Jacobs 98f868c319 MemFSTest.Rmdir_NonEmpty 2015-03-03 14:34:28 +11:00