Skip to content

Commit

Permalink
syscalls: Update test timeouts
Browse files Browse the repository at this point in the history
This change was genered by:

- running syscalls via kirk on RPi zero and saving the json result

- running 'cd scripts && calctimeouts.py -l /opt/ltp -r results.json -p'

Signed-off-by: Cyril Hrubis <[email protected]>
  • Loading branch information
metan-ucw authored and acerv committed Jan 24, 2025
1 parent 70cd326 commit dd8dffe
Show file tree
Hide file tree
Showing 65 changed files with 65 additions and 1 deletion.
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/access/access01.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ static void setup(void)
}

static struct tst_test test = {
.timeout = 1,
.needs_tmpdir = 1,
.needs_root = 1,
.forks_child = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/add_key/add_key05.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 2,
.test = do_test,
.tcnt = 2,
.needs_root = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/alarm/alarm05.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ static void setup(void)
}

static struct tst_test test = {
.timeout = 2,
.test_all = run,
.setup = setup,
};
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/alarm/alarm06.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ static void verify_alarm(void)
}

static struct tst_test test = {
.timeout = 4,
.setup = setup,
.test_all = verify_alarm,
};
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/alarm/alarm07.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ static void setup(void)
}

static struct tst_test test = {
.timeout = 4,
.test_all = verify_alarm,
.setup = setup,
.forks_child = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/bind/bind04.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ static void test_bind(unsigned int n)
}

static struct tst_test test = {
.timeout = 1,
.test = test_bind,
.tcnt = ARRAY_SIZE(testcase_list),
.needs_tmpdir = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/bpf/bpf_prog05.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ static void run(void)
}

static struct tst_test test = {
.timeout = 20,
.setup = setup,
.test_all = run,
.taint_check = TST_TAINT_W | TST_TAINT_D,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/bpf/bpf_prog06.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static void run(void)
}

static struct tst_test test = {
.timeout = 20,
.setup = setup,
.test_all = run,
.min_kver = "5.8",
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/bpf/bpf_prog07.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ static void run(void)
}

static struct tst_test test = {
.timeout = 20,
.setup = setup,
.test_all = run,
.min_kver = "5.8",
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/cachestat/cachestat01.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 13,
.test = run,
.tcnt = 2,
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/cachestat/cachestat04.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ static void run(void)
}

static struct tst_test test = {
.timeout = 2,
.test_all = run,
.mount_device = 1,
.mntpoint = MNTPOINT,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/chdir/chdir01.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 10,
.needs_root = 1,
.mount_device = 1,
.mntpoint = MNTPOINT,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/clock_gettime/leapsec01.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 40,
.test_all = run_leapsec,
.setup = setup,
.cleanup = cleanup,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ static void do_test(unsigned int i)
}

static struct tst_test test = {
.timeout = 3,
.tcnt = ARRAY_SIZE(tcase),
.test = do_test,
.test_variants = ARRAY_SIZE(variants),
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/clock_settime/clock_settime03.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ static void run(void)
}

static struct tst_test test = {
.timeout = 4,
.test_all = run,
.test_variants = ARRAY_SIZE(variants),
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/close_range/close_range01.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ static void run(unsigned int n)
}

static struct tst_test test = {
.timeout = 9,
.tcnt = 4,
.forks_child = 1,
.mount_device = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/connect/connect02.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ static void run(void)
}

static struct tst_test test = {
.timeout = 3,
.test_all = run,
.setup = setup,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/creat/creat05.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 1,
.test_all = verify_creat,
.needs_tmpdir = 1,
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/creat/creat09.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 1,
.test = run,
.setup = setup,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/execve/execve05.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static void setup(void)
}

static struct tst_test test = {
.timeout = 3,
.test_all = verify_execve,
.options = (struct tst_option[]) {
{"n:", &opt_nchild, "Numbers of children"},
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/execveat/execveat03.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static void setup(void)
}

static struct tst_test test = {
.timeout = 1,
.needs_root = 1,
.mount_device = 1,
.needs_overlay = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fallocate/fallocate04.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 9,
.options = (struct tst_option[]) {
{"v", &verbose, "Turns on verbose mode"},
{}
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fallocate/fallocate05.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 42,
.needs_root = 1,
.mount_device = 1,
.mntpoint = MNTPOINT,
Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/fallocate/fallocate06.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static struct tst_test test = {
.tcnt = ARRAY_SIZE(testcase_list),
.needs_root = 1,
.dev_min_size = 1024,
.timeout = 120,
.timeout = 150,
.mount_device = 1,
.mntpoint = MNTPOINT,
.all_filesystems = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fanotify/fanotify01.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 10,
.test = test_fanotify,
.tcnt = ARRAY_SIZE(tcases),
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fanotify/fanotify03.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ static const char *const resource_files[] = {
};

static struct tst_test test = {
.timeout = 1,
.test = test_fanotify,
.tcnt = ARRAY_SIZE(tcases),
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fanotify/fanotify05.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 13,
.test = test_fanotify,
.tcnt = ARRAY_SIZE(tcases),
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fanotify/fanotify06.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 1,
.test = test_fanotify,
.tcnt = ARRAY_SIZE(tcases),
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fanotify/fanotify09.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 1,
.test = test_fanotify,
.tcnt = ARRAY_SIZE(tcases),
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fanotify/fanotify10.c
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 10,
.test = test_fanotify,
.tcnt = ARRAY_SIZE(tcases),
.test_variants = 2,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fchmodat2/fchmodat2_01.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 9,
.test_all = run,
.setup = setup,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fcntl/fcntl14.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 8,
.test_all = run,
.setup = setup,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fcntl/fcntl36.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ static void tests(unsigned int i)
}

static struct tst_test test = {
.timeout = 9,
.needs_tmpdir = 1,
.test = tests,
.tcnt = ARRAY_SIZE(tcases),
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fdatasync/fdatasync03.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static void verify_fdatasync(void)
}

static struct tst_test test = {
.timeout = 15,
.needs_root = 1,
.mount_device = 1,
.all_filesystems = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fgetxattr/fgetxattr01.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 10,
.setup = setup,
.test = verify_fgetxattr,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fremovexattr/fremovexattr01.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ static void setup(void)
}

static struct tst_test test = {
.timeout = 12,
.setup = setup,
.test_all = verify_fremovexattr,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fremovexattr/fremovexattr02.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ static void setup(void)
}

static struct tst_test test = {
.timeout = 10,
.setup = setup,
.test = verify_fremovexattr,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fsconfig/fsconfig01.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ static void run(void)
}

static struct tst_test test = {
.timeout = 10,
.test_all = run,
.setup = fsopen_supported_by_kernel,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fsconfig/fsconfig03.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 9,
.test_all = run,
.setup = setup,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fsetxattr/fsetxattr01.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ static void setup(void)
}

static struct tst_test test = {
.timeout = 10,
.setup = setup,
.test = verify_fsetxattr,
.cleanup = cleanup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fsmount/fsmount01.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static void run(unsigned int n)
}

static struct tst_test test = {
.timeout = 10,
.tcnt = ARRAY_SIZE(tcases),
.test = run,
.setup = fsopen_supported_by_kernel,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fsmount/fsmount02.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static void run(unsigned int n)
}

static struct tst_test test = {
.timeout = 9,
.tcnt = ARRAY_SIZE(tcases),
.test = run,
.setup = setup,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fsopen/fsopen01.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ static void run(unsigned int n)
}

static struct tst_test test = {
.timeout = 9,
.tcnt = ARRAY_SIZE(tcases),
.test = run,
.setup = fsopen_supported_by_kernel,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fspick/fspick01.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ static void run(unsigned int n)
}

static struct tst_test test = {
.timeout = 9,
.tcnt = ARRAY_SIZE(tcases),
.test = run,
.setup = fsopen_supported_by_kernel,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fspick/fspick02.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ static void run(unsigned int n)
}

static struct tst_test test = {
.timeout = 9,
.tcnt = ARRAY_SIZE(tcases),
.test = run,
.setup = fsopen_supported_by_kernel,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fstatfs/fstatfs01.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 9,
.setup = setup,
.cleanup = cleanup,
.tcnt = ARRAY_SIZE(tcases),
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fsync/fsync01.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ static void cleanup(void)
}

static struct tst_test test = {
.timeout = 10,
.cleanup = cleanup,
.setup = setup,
.test_all = verify_fsync,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/fsync/fsync04.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static void verify_fsync(void)
}

static struct tst_test test = {
.timeout = 17,
.needs_root = 1,
.mount_device = 1,
.all_filesystems = 1,
Expand Down
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/getpid/getpid01.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ static void verify_getpid(void)
}

static struct tst_test test = {
.timeout = 1,
.setup = setup,
.forks_child = 1,
.test_all = verify_getpid,
Expand Down
Loading

0 comments on commit dd8dffe

Please sign in to comment.