diff options
Diffstat (limited to 'tests/scripts')
-rw-r--r-- | tests/scripts/functions/file | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/scripts/functions/file b/tests/scripts/functions/file index 9a4cd02..55eb58a 100644 --- a/tests/scripts/functions/file +++ b/tests/scripts/functions/file @@ -30,6 +30,23 @@ x:;@cat file.out unlink('file.out'); +# Test > with no content +run_make_test(q! +$(file >4touch) +.PHONY:x +x:;@cat 4touch +!, + '', ''); + +# Test >> with no content +run_make_test(q! +$(file >>4touch) +.PHONY:x +x:;@cat 4touch +!, + '', ''); +unlink('4touch'); + # Test > to a read-only file touch('file.out'); chmod(0444, 'file.out'); |