From 9f8cbdfb5510b95bc0ba716527c52ce1e41d6696 Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Thu, 26 Sep 2019 11:04:41 +0100 Subject: [PATCH] Initialise configuration before running DirectPlay tests --- tests/50-dplay.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/50-dplay.t b/tests/50-dplay.t index 024c107..d856a7f 100644 --- a/tests/50-dplay.t +++ b/tests/50-dplay.t @@ -1,5 +1,5 @@ # IPXWrapper test suite -# Copyright (C) 2015 Daniel Collins +# Copyright (C) 2015-2019 Daniel Collins # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 as published by @@ -26,6 +26,7 @@ use FindBin; use lib "$FindBin::Bin/lib/"; use IPXWrapper::Tool::DPTool; +use IPXWrapper::Util; require "$FindBin::Bin/config.pm"; our ($remote_ip_a, $remote_b_ip, $remote_c_ip); @@ -33,6 +34,11 @@ our ($remote_ip_a, $remote_b_ip, $remote_c_ip); # Nicked from dplay.h use constant DPID_ALLPLAYERS => 0; +# Reset IPXWrapper configuration to defaults +reg_delete_key($remote_ip_a, "HKCU\\Software\\IPXWrapper"); +reg_delete_key($remote_b_ip, "HKCU\\Software\\IPXWrapper"); +reg_delete_key($remote_c_ip, "HKCU\\Software\\IPXWrapper"); + describe "A single DirectPlay client" => sub { it "can find a published session" => sub