[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/16] tests/migration/stress: remove unused exit_success
From: |
marcandre . lureau |
Subject: |
[PATCH 14/16] tests/migration/stress: remove unused exit_success |
Date: |
Fri, 28 Aug 2020 15:07:32 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
tests/migration/stress.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/tests/migration/stress.c b/tests/migration/stress.c
index a062ef6b55..05d85051e3 100644
--- a/tests/migration/stress.c
+++ b/tests/migration/stress.c
@@ -47,19 +47,6 @@ static __attribute__((noreturn)) void exit_failure(void)
}
}
-static __attribute__((noreturn)) void exit_success(void)
-{
- if (getpid() == 1) {
- sync();
- reboot(RB_POWER_OFF);
- fprintf(stderr, "%s (%05d): ERROR: cannot reboot: %s\n",
- argv0, gettid(), strerror(errno));
- abort();
- } else {
- exit(0);
- }
-}
-
static int get_command_arg_str(const char *name,
char **val)
{
--
2.26.2
- [PATCH 05/16] tests: qga has virtio-serial by default when host has it, (continued)
- [PATCH 05/16] tests: qga has virtio-serial by default when host has it, marcandre . lureau, 2020/08/28
- [PATCH 06/16] meson: convert the unit tests, marcandre . lureau, 2020/08/28
- [PATCH 07/16] meson: move keyutils dependency check, marcandre . lureau, 2020/08/28
- [PATCH 08/16] meson: remove old socket_scm_helper rule, marcandre . lureau, 2020/08/28
- [PATCH 09/16] meson: convert vhost-user-bridge, marcandre . lureau, 2020/08/28
- [PATCH 10/16] meson: convert atomic*-bench, marcandre . lureau, 2020/08/28
- [PATCH 11/16] tests/Makefile.include: update check-build, marcandre . lureau, 2020/08/28
- [PATCH 12/16] tests: do not print benchmark output to stdout, marcandre . lureau, 2020/08/28
- [PATCH 13/16] meson: convert the speed tests, marcandre . lureau, 2020/08/28
- [PATCH 14/16] tests/migration/stress: remove unused exit_success,
marcandre . lureau <=
- [PATCH 15/16] meson: fix migration/stress compilation with glib>=2.30, marcandre . lureau, 2020/08/28
- [PATCH 16/16] meson: convert migration/initrd-stress, marcandre . lureau, 2020/08/28
- Re: [PATCH 00/16] meson: convert unit tests in tests/Makefile.include, Thomas Huth, 2020/08/28