diff options
author | Jakob Unterwurzacher | 2020-05-03 13:23:00 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-05-03 14:49:32 +0200 |
commit | db93a6c54cfd615561207f1bbcf7e665ebc296b6 (patch) | |
tree | da3148e0bc191834a2f4b01e525c2e2f51ae6751 /tests/reverse/correctness_test.go | |
parent | 483054efaa1bd965b41265c681a78fb98e51b739 (diff) |
tests: reverse: add inode mapping test (TestVirtualFileIno)
Verify that virtual files get assigned inode numbers
we expect.
Diffstat (limited to 'tests/reverse/correctness_test.go')
-rw-r--r-- | tests/reverse/correctness_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/reverse/correctness_test.go b/tests/reverse/correctness_test.go index 931be42..67edeb6 100644 --- a/tests/reverse/correctness_test.go +++ b/tests/reverse/correctness_test.go @@ -201,6 +201,13 @@ func TestTooLongSymlink(t *testing.T) { if err != nil { t.Fatal(err) } + // save later tests the trouble of dealing with ENAMETOOLONG errors + defer func() { + os.Remove(fn) + // immediately create a new symlink so the inode number is not + // reused for something else + os.Symlink("/tmp", fn) + }() t.Logf("Created symlink of length %d", l) _, err = os.Readlink(dirC + "/TooLongSymlink") if err == nil { |