Skip to content

Commit

Permalink
tests/qtest/migration-test.c: use 127.0.0.1 instead of 0
Browse files Browse the repository at this point in the history
OpenBSD doesn't like :0 as an address, switch to using 127.0.0.1
in baddest; it's really testing the :0 port number that isn't allowed
on anything.

(The test doesn't currently run anyway because of the userfault
problem that Peter noticed, but this gets us closer to being able to
reenable it)

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20210719185217.122105-1-dgilbert@redhat.com>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  • Loading branch information
dagrh committed Jul 26, 2021
1 parent a237650 commit 5e32ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/qtest/migration-test.c
Expand Up @@ -787,10 +787,10 @@ static void test_baddest(void)

args->hide_stderr = true;

if (test_migrate_start(&from, &to, "tcp:0:0", args)) {
if (test_migrate_start(&from, &to, "tcp:127.0.0.1:0", args)) {
return;
}
migrate_qmp(from, "tcp:0:0", "{}");
migrate_qmp(from, "tcp:127.0.0.1:0", "{}");
wait_for_migration_fail(from, false);
test_migrate_end(from, to, false);
}
Expand Down

0 comments on commit 5e32ffd

Please sign in to comment.