[gobject-introspection] tests: Add a long string constant test
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests: Add a long string constant test
- Date: Tue, 20 Dec 2011 18:24:44 +0000 (UTC)
commit f79e3c92c8aa06749be50538f43d3a85ddb23674
Author: Colin Walters <walters verbum org>
Date: Tue Dec 20 13:24:03 2011 -0500
tests: Add a long string constant test
https://bugzilla.gnome.org/show_bug.cgi?id=662888
tests/scanner/Regress-1.0-expected.gir | 5 +++++
tests/scanner/regress.h | 8 ++++++++
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 161b524..e563372 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 f76c146..91d1471 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]