diff options
author | Murray Cumming <murrayc@murrayc.com> | 2012-12-06 16:29:49 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2012-12-06 16:29:49 +0100 |
commit | 0faa3c3cfcb98b0ead0504bd95a6bcea9815a6a9 (patch) | |
tree | 737b4c05ea0772f65cfcf139849b9dcec4fc857c /tests | |
parent | c8e89d30dc9ad7bfcf3584a37f183e5693a890fa (diff) | |
download | rygel-0faa3c3cfcb98b0ead0504bd95a6bcea9815a6a9.tar.gz |
tests: Catch an exception
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rygel-http-post-test.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/rygel-http-post-test.vala b/tests/rygel-http-post-test.vala index af8acdd0..eccbaa3c 100644 --- a/tests/rygel-http-post-test.vala +++ b/tests/rygel-http-post-test.vala @@ -353,7 +353,12 @@ public class Rygel.MediaContainer : Rygel.MediaObject { this.error = false; this.id = "TesContainer"; - this.monitor = this.file.monitor_file (FileMonitorFlags.NONE); + try { + this.monitor = this.file.monitor_file (FileMonitorFlags.NONE); + } catch (GLib.Error error) { + assert_not_reached (); + } + this.monitor.changed.connect (this.on_file_changed); } |