summaryrefslogtreecommitdiffstats
path: root/src/tests/filesys/extended/dir-rmdir.c
blob: b3cbc6f2699af9f74a24419cf00796656095c7dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Creates and removes a directory, then makes sure that it's
   really gone. */

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

void
test_main (void) 
{
  CHECK (mkdir ("a"), "mkdir \"a\"");
  CHECK (remove ("a"), "rmdir \"a\"");
  CHECK (!chdir ("a"), "chdir \"a\" (must return false)");
}