diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-27 10:54:02 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-27 10:55:59 +0100 |
commit | 6afb7336e33dc28c4fd1a4545a8298ee36c10723 (patch) | |
tree | 7350a21cd2052466b7ccbaac4ef88a2ef5357ce5 /gobject | |
parent | b3a5403cdad6d3b9c8e4d342538790cfaecbd99c (diff) | |
download | libguestfs-6afb7336e33dc28c4fd1a4545a8298ee36c10723.tar.gz libguestfs-6afb7336e33dc28c4fd1a4545a8298ee36c10723.tar.xz libguestfs-6afb7336e33dc28c4fd1a4545a8298ee36c10723.zip |
gobject: bindtests: gjs exception behaviour changed, fix test.
When libguestfs calls 'error (g, "error")', gjs in F17 throws
error.message == "Error invoking Guestfs.test0rinterr: error"
In F18, error.message is simply the string "error".
Fix the test so it works for both cases.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/bindtests-manual.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/bindtests-manual.js b/gobject/bindtests-manual.js index 84a1546a..8f4ef152 100644 --- a/gobject/bindtests-manual.js +++ b/gobject/bindtests-manual.js @@ -26,7 +26,7 @@ function check_error(f) { g[f](); } catch (error) { threw = true; - if (!error.message.match(/: error$/)) { + if (!error.message.match(/error$/)) { print(f + " threw unexpected error: " + error.message); fail = true; } |