summaryrefslogtreecommitdiffstats
path: root/src/tests/filesys/extended/dir-mkdir.c
blob: 994f41ce967bb5336732175555f6f22ed78f97e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Tests mkdir(). */

#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"

void
test_main (void) 
{
  CHECK (mkdir ("a"), "mkdir \"a\"");
  CHECK (create ("a/b", 512), "create \"a/b\"");
  CHECK (chdir ("a"), "chdir \"a\"");
  CHECK (open ("b") > 1, "open \"b\"");
}