Skip to content

Commit

Permalink
migration-test: dirtylimit checks for x86_64 arch before
Browse files Browse the repository at this point in the history
So no need to assert we are in x86_64.
Once there, refactor the function to remove useless variables.

Reviewed-by: Peter Xu <peterx@redhat.com>
Message-ID: <20230608224943.3877-11-quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
  • Loading branch information
Juan Quintela committed Sep 29, 2023
1 parent 0c690d3 commit 22d3c6e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/qtest/migration-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -2651,10 +2651,7 @@ static int64_t get_limit_rate(QTestState *who)
static QTestState *dirtylimit_start_vm(void)
{
QTestState *vm = NULL;
g_autofree gchar *cmd = NULL;
const char *arch = qtest_get_arch();

assert((strcmp(arch, "x86_64") == 0));
g_autofree gchar *
cmd = g_strdup_printf("-accel kvm,dirty-ring-size=4096 "
"-name dirtylimit-test,debug-threads=on "
"-m 150M -smp 1 "
Expand Down

0 comments on commit 22d3c6e

Please sign in to comment.