summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-12-20 13:24:03 -0500
committerColin Walters <walters@verbum.org>2011-12-20 13:24:03 -0500
commitf79e3c92c8aa06749be50538f43d3a85ddb23674 (patch)
tree3a8903672d237a66847f944f09241faf14644892
parentf5c9cb0593dd434f9197e84f9bc7c320ea4869fb (diff)
downloadgobject-introspection-f79e3c92c8aa06749be50538f43d3a85ddb23674.tar.gz
tests: Add a long string constant test
https://bugzilla.gnome.org/show_bug.cgi?id=662888
-rw-r--r--tests/scanner/Regress-1.0-expected.gir5
-rw-r--r--tests/scanner/regress.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index 161b5242..e5633729 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -43,6 +43,11 @@ and/or use gtk-doc annotations. -->
<record name="Intset" c:type="RegressIntset" disguised="1">
<doc xml:whitespace="preserve">Like telepathy-glib's TpIntset.</doc>
</record>
+ <constant name="LONG_STRING_CONSTANT"
+ value="TYPE,VALUE,ENCODING,CHARSET,LANGUAGE,DOM,INTL,POSTAL,PARCEL,HOME,WORK,PREF,VOICE,FAX,MSG,CELL,PAGER,BBS,MODEM,CAR,ISDN,VIDEO,AOL,APPLELINK,ATTMAIL,CIS,EWORLD,INTERNET,IBMMAIL,MCIMAIL,POWERSHARE,PRODIGY,TLX,X400,GIF,CGM,WMF,BMP,MET,PMB,DIB,PICT,TIFF,PDF,PS,JPEG,QTIME,MPEG,MPEG2,AVI,WAVE,AIFF,PCM,X509,PGP"
+ c:type="REGRESS_LONG_STRING_CONSTANT">
+ <type name="utf8" c:type="gchar*"/>
+ </constant>
<constant name="Mixed_Case_Constant"
value="4423"
c:type="REGRESS_Mixed_Case_Constant">
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index f76c1467..91d14713 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -730,4 +730,12 @@ void regress_test_struct_fixed_array_frob (RegressTestStructFixedArray *str);
#define REGRESS_TEST_GNUC_EXTENSION_STMT(foo) (G_GNUC_EXTENSION ({ int x[10]; x[5] = 42; x[5]; }))
#endif
+/* https://bugzilla.gnome.org/show_bug.cgi?id=662888 */
+#define REGRESS_LONG_STRING_CONSTANT \
+ "TYPE,VALUE,ENCODING,CHARSET,LANGUAGE,DOM,INTL,POSTAL,PARCEL," \
+ "HOME,WORK,PREF,VOICE,FAX,MSG,CELL,PAGER,BBS,MODEM,CAR,ISDN,VIDEO," \
+ "AOL,APPLELINK,ATTMAIL,CIS,EWORLD,INTERNET,IBMMAIL,MCIMAIL," \
+ "POWERSHARE,PRODIGY,TLX,X400,GIF,CGM,WMF,BMP,MET,PMB,DIB,PICT,TIFF," \
+ "PDF,PS,JPEG,QTIME,MPEG,MPEG2,AVI,WAVE,AIFF,PCM,X509,PGP"
+
#endif /* __GITESTTYPES_H__ */