From 2f29727d864bf681aec78b1da38047123c9383c9 Mon Sep 17 00:00:00 2001 From: Michael Tuexen <tuexen@fh-muenster.de> Date: Tue, 3 Oct 2017 20:05:14 +0200 Subject: [PATCH] Detect error when calling sendfile(). Detect a runtime error if the bytes argument is not as expected. --- gtests/net/packetdrill/run_system_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index 4ef92801..53b0beb5 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -4814,7 +4814,7 @@ static int syscall_sendfile(struct state *state, struct syscall_spec *syscall, asprintf(error, "Expected sbytes %lld but got %lld", (long long)script_sbytes, (long long)live_sbytes); - goto error_out; + status = STATUS_ERR; } error_out: -- GitLab