aboutsummaryrefslogtreecommitdiff
path: root/internal/syscallcompat/emulate_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/syscallcompat/emulate_test.go')
-rw-r--r--internal/syscallcompat/emulate_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/internal/syscallcompat/emulate_test.go b/internal/syscallcompat/emulate_test.go
index 6db37f8..eeffebf 100644
--- a/internal/syscallcompat/emulate_test.go
+++ b/internal/syscallcompat/emulate_test.go
@@ -27,32 +27,6 @@ func TestEmulateMknodat(t *testing.T) {
}
}
-func TestEmulateMkdirat(t *testing.T) {
- err := emulateMkdirat(tmpDirFd, "mkdirat", 0700)
- if err != nil {
- t.Fatal(err)
- }
- fi, err := os.Stat(tmpDir + "/mkdirat")
- if err != nil {
- t.Fatal(err)
- }
- if !fi.IsDir() {
- t.Fatalf("mkdirat did not create a directory")
- }
- // Test with absolute path
- err = emulateMkdirat(-1, tmpDir+"/mkdirat2", 0700)
- if err != nil {
- t.Fatal(err)
- }
- fi, err = os.Stat(tmpDir + "/mkdirat2")
- if err != nil {
- t.Fatal(err)
- }
- if !fi.IsDir() {
- t.Fatalf("mkdirat did not create a directory")
- }
-}
-
func TestEmulateFstatat(t *testing.T) {
var st unix.Stat_t
// stat a normal file (size 3)