random: Fix behavior of kernel option "-rs".
[pintos-anon] / src / tests / filesys / extended / dir-under-file.c
1 /* Tries to create a directory with the same name as an existing
2    file, which must return failure. */
3
4 #include <syscall.h>
5 #include "tests/lib.h"
6 #include "tests/main.h"
7
8 void
9 test_main (void) 
10 {
11   CHECK (create ("abc", 0), "create \"abc\"");
12   CHECK (!mkdir ("abc"), "mkdir \"abc\" (must return false)");
13 }