diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-04-11 14:52:59 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-11 14:52:59 -0600 |
commit | c47b44afb686d794f8ed62feb77e9c42431c8444 (patch) | |
tree | 485af24f49a445fdf4c7a97277c74de2a5533c33 | |
parent | 52dcdbba35c828d425ce5a0b5228b0584f588fbb (diff) | |
download | liburing-c47b44afb686d794f8ed62feb77e9c42431c8444.tar.gz liburing-c47b44afb686d794f8ed62feb77e9c42431c8444.tar.bz2 |
test/timeout: fix exec-target naming
A previous commit renamed all test targets to foo.t, but didn't update
the timeout test case. Hence it now tries to exec something that isn't
there and rightfully complains about it:
Running test timeout.t Can't find exec-target, skipping
Update the test to use the right target.
Fixes: f200b5bba701 ("test/Makefile: Append `.t` to the test binary")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | test/timeout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/timeout.c b/test/timeout.c index 8c35b00..2fd4736 100644 --- a/test/timeout.c +++ b/test/timeout.c @@ -1179,7 +1179,7 @@ static int fill_exec_target(char *dst, char *path) struct stat sb; /* - * Should either be ./exec-target or test/exec-target + * Should either be ./exec-target.t or test/exec-target.t */ sprintf(dst, "%s", path); return stat(dst, &sb); @@ -1193,8 +1193,8 @@ static int test_timeout_link_cancel(void) pid_t p; int ret, i, wstatus; - if (fill_exec_target(prog_path, "./exec-target") && - fill_exec_target(prog_path, "test/exec-target")) { + if (fill_exec_target(prog_path, "./exec-target.t") && + fill_exec_target(prog_path, "test/exec-target.t")) { fprintf(stdout, "Can't find exec-target, skipping\n"); return 0; } |