~sircmpwn/ctools

7d884900626a19c2a217440ba4251914e784d1c0 — Drew DeVault 2 years ago 17cea14
unlink: move to XSI group
3 files changed, 10 insertions(+), 3 deletions(-)

M meson.build
M test/meson.build
M test/unlink
M meson.build => meson.build +1 -1
@@ 25,11 25,11 @@ oneshots = [
	'true',
	'tty',
	'uname',
	'unlink',
]

xsi_oneshots = [
	'link',
	'unlink',
]

cc = meson.get_compiler('c')

M test/meson.build => test/meson.build +8 -1
@@ 10,15 10,22 @@ test_files = [
	'cmp',
	'comm',
	'false',
	'link',
	'logname',
	'nice',
	'true',
	'tty',
	'uname',
]

xsi_tests = [
	'link',
	'unlink',
]

if get_option('xsi')
	test_files += xsi_tests
endif

foreach test_file : test_files
	test(
		test_file,

M test/unlink => test/unlink +1 -1
@@ 1,5 1,5 @@
#!/bin/sh
. "$HARNESS" link
. "$HARNESS" unlink

should_remove_link() {
	touch "$TMPDIR"/file