[vlc-commits] test: inverted error message

Rémi Denis-Courmont git at videolan.org
Sun Feb 24 17:45:53 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 24 18:38:57 2019 +0200| [c42ab303613250916364d25680e43c039668274c] | committer: Rémi Denis-Courmont

test: inverted error message

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c42ab303613250916364d25680e43c039668274c
---

 src/test/url.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test/url.c b/src/test/url.c
index 4aae6b5161..b9a827512b 100644
--- a/src/test/url.c
+++ b/src/test/url.c
@@ -120,13 +120,13 @@ static void test_url_parse(const char *in, const char *protocol,
         return;
     }
 
-    test_compare(in, url.psz_protocol, protocol);
-    test_compare(in, url.psz_username, user);
-    test_compare(in, url.psz_password, pass);
+    test_compare(in, protocol, url.psz_protocol);
+    test_compare(in, user, url.psz_username);
+    test_compare(in, pass, url.psz_password);
 
     if (ret != 0 && errno == ENOSYS)
     {
-        test_compare(in, url.psz_host, NULL);
+        test_compare(in, NULL, url.psz_host);
         exitcode = 77;
     }
     else
@@ -139,8 +139,8 @@ static void test_url_parse(const char *in, const char *protocol,
         exit(2);
     }
 
-    test_compare(in, url.psz_path, path);
-    test_compare(in, url.psz_option, option);
+    test_compare(in, path, url.psz_path);
+    test_compare(in, option, url.psz_option);
     vlc_UrlClean(&url);
 }
 



More information about the vlc-commits mailing list