summaryrefslogtreecommitdiff
path: root/testsuite/touch
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-27 04:35:09 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-27 04:35:09 +0000
commit7b76233290bd9dead1848f28ed6d0edfcceb8e09 (patch)
treeb963999fc54eddb65f1929b894f868e24851fc9c /testsuite/touch
Correcting tag name to be like previous ones1_3_0
Diffstat (limited to 'testsuite/touch')
-rw-r--r--testsuite/touch/touch-creates-file2
-rw-r--r--testsuite/touch/touch-does-not-create-file2
-rw-r--r--testsuite/touch/touch-touches-files-after-non-existent-file3
3 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/touch/touch-creates-file b/testsuite/touch/touch-creates-file
new file mode 100644
index 000000000..4b4935421
--- /dev/null
+++ b/testsuite/touch/touch-creates-file
@@ -0,0 +1,2 @@
+busybox touch foo
+test -f foo
diff --git a/testsuite/touch/touch-does-not-create-file b/testsuite/touch/touch-does-not-create-file
new file mode 100644
index 000000000..885259286
--- /dev/null
+++ b/testsuite/touch/touch-does-not-create-file
@@ -0,0 +1,2 @@
+busybox touch -c foo
+test ! -f foo
diff --git a/testsuite/touch/touch-touches-files-after-non-existent-file b/testsuite/touch/touch-touches-files-after-non-existent-file
new file mode 100644
index 000000000..a869ec267
--- /dev/null
+++ b/testsuite/touch/touch-touches-files-after-non-existent-file
@@ -0,0 +1,3 @@
+touch -t 198001010000 bar
+busybox touch -c foo bar
+test x"`find bar -mtime -1`" = xbar