~sircmpwn/ctools

ref: 0e9f63c42367ef836a3dbe9369cb987558b0d9e3 ctools/test/rmdir -rwxr-xr-x 276 bytes
0e9f63c4 — Christopher Vittal Add dirname 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
. "$HARNESS" link

should_remove_dirs() {
	mkdir foo bar
	rmdir foo bar
	[ ! -d foo ] && [ ! -d bar ]
}

should_remove_paths() {
	mkdir -p foo/bar bar/baz
	rmdir -p foo/bar bar/baz
	[ ! -d foo ] && [ ! -d bar ]
}

runtests \
	should_remove_dirs
	should_remove_paths