spec: added support for mount request using hard link

This commit is contained in:
Shivam Mishra
2021-04-23 15:51:24 -07:00
committed by Ramkumar Chinchani
parent f7829d6470
commit a7c17b7c16
5 changed files with 341 additions and 32 deletions
+2 -1
View File
@@ -518,7 +518,8 @@ func TestNegativeCases(t *testing.T) {
err = os.Chmod(dir, 0000) // remove all perms
So(err, ShouldBeNil)
if os.Geteuid() != 0 {
So(func() { _ = il.InitRepo("test") }, ShouldPanic)
err = il.InitRepo("test")
So(err, ShouldNotBeNil)
}
})