[Spice-commits] tests/test-quic.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 26 09:46:57 UTC 2018
tests/test-quic.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
New commits:
commit 656106b30494fd3f0563790ae7f212fdcd52e01b
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Mon May 14 14:36:07 2018 +0100
test-quic: Allows to specify multiple images to test
Make easier to test an entire set of files
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/tests/test-quic.c b/tests/test-quic.c
index 2a7ff3d..01a3ef3 100644
--- a/tests/test-quic.c
+++ b/tests/test-quic.c
@@ -232,12 +232,14 @@ static void test_pixbuf(GdkPixbuf *pixbuf)
int main(int argc, char **argv)
{
- if (argc == 2) {
- GdkPixbuf *source_pixbuf;
+ if (argc >= 2) {
+ for (int i = 1; i < argc; ++i) {
+ GdkPixbuf *source_pixbuf;
- source_pixbuf = gdk_pixbuf_new_from_file(argv[1], NULL);
- test_pixbuf(source_pixbuf);
- g_object_unref(source_pixbuf);
+ source_pixbuf = gdk_pixbuf_new_from_file(argv[i], NULL);
+ test_pixbuf(source_pixbuf);
+ g_object_unref(source_pixbuf);
+ }
} else if (argc == 1) {
unsigned int count;
More information about the Spice-commits
mailing list