15 lines
284 B
C
Executable file
15 lines
284 B
C
Executable file
/* 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\"");
|
|
}
|
|
|