summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-27 10:54:02 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-28 09:49:36 +0100
commit390a9190f7a098f7d840751655b5a1c8e6671524 (patch)
tree2f24af1f619d1b0d968bed5907b8505578f5d0cf
parentf8dcac4c011371d5a3d6fa2b13c262c0dc0baf50 (diff)
downloadlibguestfs-390a9190f7a098f7d840751655b5a1c8e6671524.tar.gz
libguestfs-390a9190f7a098f7d840751655b5a1c8e6671524.tar.xz
libguestfs-390a9190f7a098f7d840751655b5a1c8e6671524.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. (cherry picked from commit 6afb7336e33dc28c4fd1a4545a8298ee36c10723)
-rw-r--r--gobject/bindtests-manual.js2
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;
}