14 lines
256 B
C
14 lines
256 B
C
|
/* Try to remove the root directory.
|
||
|
This must fail. */
|
||
|
|
||
|
#include <syscall.h>
|
||
|
#include "tests/lib.h"
|
||
|
#include "tests/main.h"
|
||
|
|
||
|
void
|
||
|
test_main (void)
|
||
|
{
|
||
|
CHECK (!remove ("/"), "remove \"/\" (must fail)");
|
||
|
CHECK (create ("/a", 243), "create \"/a\"");
|
||
|
}
|