From c7d2a908e04f359f99443e6ea9423fff736de361 Mon Sep 17 00:00:00 2001 From: LI Qing Date: Thu, 4 Jul 2024 16:03:38 +0800 Subject: [PATCH] Add stat_times_test --- test/syscall_test/Makefile | 1 + test/syscall_test/blocklists.exfat/stat_times_test | 9 +++++++++ test/syscall_test/blocklists/alarm_test | 2 +- test/syscall_test/blocklists/getdents_test | 2 +- test/syscall_test/blocklists/mmap_test | 2 +- test/syscall_test/blocklists/sendfile_test | 2 +- test/syscall_test/blocklists/utimes_test | 0 test/syscall_test/run_syscall_test.sh | 1 - 8 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 test/syscall_test/blocklists.exfat/stat_times_test delete mode 100644 test/syscall_test/blocklists/utimes_test diff --git a/test/syscall_test/Makefile b/test/syscall_test/Makefile index 328740ba4..118b866e6 100644 --- a/test/syscall_test/Makefile +++ b/test/syscall_test/Makefile @@ -32,6 +32,7 @@ TESTS ?= \ pty_test \ read_test \ readv_test \ + stat_times_test \ write_test \ utimes_test \ # The end of the list diff --git a/test/syscall_test/blocklists.exfat/stat_times_test b/test/syscall_test/blocklists.exfat/stat_times_test new file mode 100644 index 000000000..b1f1eb97c --- /dev/null +++ b/test/syscall_test/blocklists.exfat/stat_times_test @@ -0,0 +1,9 @@ +StatTimesTest.FileChmod +StatTimesTest.FileCreation +StatTimesTest.FileRename +StatTimesTest.FileRenameOpenFD +StatTimesTest.FileTruncate +StatTimesTest.FileWrite +StatTimesTest.DirCreateFile +StatTimesTest.DirCreateDir +StatTimesTest.DirRemoveFile \ No newline at end of file diff --git a/test/syscall_test/blocklists/alarm_test b/test/syscall_test/blocklists/alarm_test index 61deb4c35..5b600cfab 100644 --- a/test/syscall_test/blocklists/alarm_test +++ b/test/syscall_test/blocklists/alarm_test @@ -1,2 +1,2 @@ AlarmTest.UserModeSpinning -AlarmTest.Restart_NoRandomSave +AlarmTest.Restart_NoRandomSave \ No newline at end of file diff --git a/test/syscall_test/blocklists/getdents_test b/test/syscall_test/blocklists/getdents_test index af6297516..d25dc4b2b 100644 --- a/test/syscall_test/blocklists/getdents_test +++ b/test/syscall_test/blocklists/getdents_test @@ -1,2 +1,2 @@ GetdentsTest/0.PartialBuffer -GetdentsTest/1.PartialBuffer +GetdentsTest/1.PartialBuffer \ No newline at end of file diff --git a/test/syscall_test/blocklists/mmap_test b/test/syscall_test/blocklists/mmap_test index 12b1ca2e9..36d598b52 100644 --- a/test/syscall_test/blocklists/mmap_test +++ b/test/syscall_test/blocklists/mmap_test @@ -15,4 +15,4 @@ MMapTest.MapPipe MMapTest.MapDevZero* MMapTest.MapCharDevice MMapTest.MapDirectory -MMapTest.PrivateAndShared +MMapTest.PrivateAndShared \ No newline at end of file diff --git a/test/syscall_test/blocklists/sendfile_test b/test/syscall_test/blocklists/sendfile_test index f8f2b9a4f..e72ef451c 100644 --- a/test/syscall_test/blocklists/sendfile_test +++ b/test/syscall_test/blocklists/sendfile_test @@ -3,4 +3,4 @@ SendFileTest.DoNotSendfileIfOutfileIsAppendOnly SendFileTest.SendPipeWouldBlock SendFileTest.SendPipeBlocks SendFileTest.SendToNotARegularFile -SendFileTest.SendToSpecialFile +SendFileTest.SendToSpecialFile \ No newline at end of file diff --git a/test/syscall_test/blocklists/utimes_test b/test/syscall_test/blocklists/utimes_test deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/syscall_test/run_syscall_test.sh b/test/syscall_test/run_syscall_test.sh index 5b9e6fd51..2a9f32dfc 100755 --- a/test/syscall_test/run_syscall_test.sh +++ b/test/syscall_test/run_syscall_test.sh @@ -20,7 +20,6 @@ get_blocklist_subtests(){ BLOCK=$(sed ':a;N;$!ba;s/\n/:/g' $BLOCKLIST_DIR/$1) else BLOCK="" - return 1 fi for extra_dir in $EXTRA_BLOCKLISTS_DIRS ; do