mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-07 08:27:25 +00:00
test-quic: Allows to specify multiple images to test
Make easier to test an entire set of files Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
258123318d
commit
656106b304
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user