Commit Graph

8 Commits

Author SHA1 Message Date
Frediano Ziglio
08b5ffb3ff tests: Remove unused structure declaration
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-06-04 16:12:34 +01:00
Victor Toso
6f11f55996 tests: fix -Wall -Wextra compiler warnings
With -Wall a few -Wunused-variable and -Wunused-but-set-variable;
With -Wextra lots of -Wunused-parameter and a few -Wsign-compare.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-10-05 14:15:08 +02:00
Christophe Fergeau
377842b94d test-file-transfer: Don't leak GError
Acked-by: Victor Toso <victortoso@redhat.com>
2016-08-03 15:27:27 +02:00
Christophe Fergeau
66d8e2ee50 test-file-transfer: Don't leak GFileInfo
The GFileInfo returned by spice_file_transfer_task_init_task_finish()
must be unref'ed when no longer needed.

Acked-by: Victor Toso <victortoso@redhat.com>
2016-08-03 15:27:24 +02:00
Victor Toso
95c570274f tests: file-transfer agent cancel
Agent only can only send error or cancel from a transfer operation
after it was initialized. From SpiceFileTransferTask point of view,
error and cancellation is an GError with different code so testing
only cancel seems enough.

Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-07-07 16:19:23 +02:00
Victor Toso
5dc16d27c0 tests: file-transfer cancel on read async
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-07-07 16:19:23 +02:00
Victor Toso
9d16aced7f tests: file-transfer cancel on task init
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-07-07 16:19:23 +02:00
Victor Toso
bee52d2ba7 tests: file-transfer include simple tests
This only includes a simple test for file-transfer with a small
summary of the possible situations of the test.

As the test is specifically for SpiceFileTransferTask, we don't create
a SpiceMainChannel.

Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-07-07 16:19:23 +02:00