Skip to contentSkip to conversation

Add utime07 test

PATCH In review Andrea Cervesato 2 participants 2 messages May 3, 2024 – May 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Add utime07 test

From: Andrea Cervesato <[email protected]>

This test has been extracted from symlink01 test and it verifies that utime() is working correctly on symlink() generated files.

---
Fix make check
Add TIME_DIFF macro for utime delay value and simplified check

 runtest/smoketest                          |  2 +-
 runtest/syscalls                           |  2 +-
 testcases/kernel/syscalls/utime/.gitignore |  1 +
 testcases/kernel/syscalls/utime/utime07.c  | 97 ++++++++++++++++++++++
 4 files changed, 100 insertions(+), 2 deletions(-)
 create mode 100644 testcases/kernel/syscalls/utime/utime07.c
runtest/smoketest +1 -1
index 83eebfe7b..f6f14fd2b 100644
@@ -9,7 +9,7 @@ wait02 wait02
 write01 write01
 symlink01 symlink01
 stat04 symlink01 -T stat04
-utime01A symlink01 -T utime01
+utime07 utime07
 rename01A symlink01 -T rename01
 splice02 splice02 -s 20
 df01_sh df01.sh
runtest/syscalls +1 -1
index 252123d8b..bca8da9b7 100644
@@ -1679,12 +1679,12 @@ ustat01 ustat01
 ustat02 ustat02
 
 utime01 utime01
-utime01A symlink01 -T utime01
 utime02 utime02
 utime03 utime03
 utime04 utime04
 utime05 utime05
 utime06 utime06
+utime07 utime07
 
 utimes01 utimes01
 
testcases/kernel/syscalls/utime/.gitignore +1 -0
index 94c0ae07c..403764521 100644
@@ -4,3 +4,4 @@
 /utime04
 /utime05
 /utime06
+/utime07
testcases/kernel/syscalls/utime/utime07.c new file +97 -0

97 lines not on this page · raw message

Signature · 5 lines
2.35.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Andrea,

merged with Avinesh's RBT (you could have added it yourself, as he added it in v2 and you changed what he proposed).

Also I dared to slightly change the documentation (added errnos) and fix minor whitespace.

Thank you!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp