glib/gio/tests
David Zeuthen d72116d8b7 gdbus-codegen: Don't generate invalid GObject property names
For a D-Bus property with name "Type" (fairly common), we used to
generate a GObject property with name "type-" and C accessors
get_type_() (to avoid clashing with the GType getter), set_type_()
(for symmetri).

However, the rules for GObject property names are fairly rigid and
specifically prohibit names ending in a dash.

Therefore change things so the chosen GObject property name is "type"
but preserve the naming rules for the C getter and setter (for the
same reasons: avoiding name clashing and symmetri).

This change does break the API of generated code (but only on the
GObject property level, the C symbols are not changed) but strictly
speaking the behavior was undefined since "type-" was an invalid
GObject property name.

Also add a test case for this.

Bug 679473.

https://bugzilla.gnome.org/show_bug.cgi?id=679473

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
2012-07-06 09:26:41 -04:00
..
gdbus-object-manager-example GDBus: Regenerate code when the codegen or options passed to it changes 2011-10-05 12:42:06 -04:00
schema-tests Add a test for CDATA in gschema.xml files 2011-11-07 00:14:28 -05:00
.gitignore update .gitignore 2012-06-12 07:09:53 -04:00
actions.c Fix previous commit 2012-06-25 19:37:05 -04:00
appinfo-test2.desktop Cleanups 2010-07-05 00:56:12 -04:00
appinfo-test-gnome.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo-test-notgnome.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo-test.c Merge the wip/gapplication branch 2010-06-07 13:48:42 -04:00
appinfo-test.desktop GAppInfo: add a mechanism to query supported content types 2012-05-16 12:42:12 +02:00
appinfo.c Expand GAppInfo tests 2012-06-04 06:04:26 -04:00
async-close-output-stream.c Don't use deprecated GThread API in gio tests 2011-10-10 09:49:50 -04:00
basic-application.c Improve GApplication test coverage 2012-06-04 06:04:28 -04:00
buffered-input-stream.c fix warnings 2012-04-30 09:28:42 -04:00
buffered-output-stream.c Make GBufferedOutputStream implement GSeekable 2012-04-23 10:57:07 +02:00
cancellable.c gio: GCancellable can be used concurrently 2011-08-19 11:13:37 +02:00
cert1.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
cert2.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
cert3.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
cert-key.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
cert-list.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
contenttype.c Fix /contenttype/guess test 2012-06-28 15:57:22 +02:00
contexts.c e G_SOURCE_CONTINUE/REMOVE internally 2012-01-25 16:15:18 -05:00
converter-stream.c GConverterInputStream: fix an edge case 2012-05-30 09:02:33 -04:00
data-input-stream.c Plug some leaks in the GIO tests 2011-12-14 12:41:15 +00:00
data-output-stream.c Make GDataOutputStream implement GSeekable 2012-04-23 10:57:12 +02:00
de.po Merge GSettings tests 2010-04-17 01:48:05 -04:00
desktop-app-info.c gio/tests: Use g_list_free_full() convenience function 2012-01-02 23:18:22 +01:00
echo-server.c Don't use deprecated GThread API in gio tests 2011-10-10 09:49:50 -04:00
enums.xml.template GSettings: major refactor. Add enums, range. 2010-06-16 18:17:53 -04:00
file.c glocalfile: fix error code when opening a directory on win32 2012-02-09 06:48:12 -05:00
fileattributematcher.c gio: Add tests for g_file_attribute_matcher_subtract() 2011-11-16 17:21:21 +01:00
filter-cat.c Add GZIP header processing to GZlibCompressor/GZlibDecompressor 2010-08-17 17:37:32 +02:00
filter-streams.c Fix warning 2010-06-09 10:32:36 +02:00
g-file-info.c Plug a mem leak in g-file-info test 2010-09-03 15:37:08 -04:00
g-file.c Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
g-icon.c Improve GIcon test coverage 2012-06-04 06:04:29 -04:00
gapplication-example-actions.c Don't use deprecated GApplication api in examples 2011-12-08 18:05:15 -05:00
gapplication-example-cmdline2.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
gapplication-example-cmdline3.c e G_SOURCE_CONTINUE/REMOVE internally 2012-01-25 16:15:18 -05:00
gapplication-example-cmdline.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication-example-dbushooks.c application: Add dbus register/unregister hooks 2012-05-29 19:01:42 +02:00
gapplication-example-open.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication.c tests: Add missing va_end() 2012-06-22 10:32:25 -04:00
gdbus-addresses.c Improve dbus address test coverage 2010-08-08 21:32:03 -04:00
gdbus-auth.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-bz627724.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-close-pending.c Regression test for closing a stream, slowly, while a message is queued 2011-09-16 12:00:22 -04:00
gdbus-connection-flush-helper.c Bug 618882 – No way to ensure that a message is sent 2010-07-07 15:03:03 -04:00
gdbus-connection-flush.c Add test case for #662395 2011-11-21 18:16:51 +00:00
gdbus-connection-loss.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-connection-slow.c Fix test building on win32 2012-04-19 18:19:10 +02:00
gdbus-connection.c gdbus: Implement g_dbus_connection_get_last_serial() 2012-06-06 19:44:39 +02:00
gdbus-daemon.c Add gdbus-daemon test app 2012-04-20 15:02:48 +02:00
gdbus-error.c Add some more test about gdbus_error apis 2010-08-07 18:55:21 -04:00
gdbus-example-export.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
gdbus-example-objectmanager-client.c gio/tests: Use g_list_free_full() convenience function 2012-01-02 23:18:22 +01:00
gdbus-example-objectmanager-server.c GDBusObjectManagerServer: Allow setting :connection property 2011-05-04 03:43:52 -04:00
gdbus-example-own-name.c Strip copyright headers from examples 2010-05-11 15:50:19 -04:00
gdbus-example-peer.c GDBusServer: Make ::new-connection return whether the connection was claimed 2010-09-09 14:02:31 -04:00
gdbus-example-proxy-subclass.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-example-server.c GDBus: Add GDBusSendMessageFlags 2010-07-19 16:07:57 -04:00
gdbus-example-subtree.c Update the GDBus subtree example for the new API 2010-07-19 15:03:54 -04:00
gdbus-example-unix-fd-client.c GDBus: Add GDBusSendMessageFlags 2010-07-19 16:07:57 -04:00
gdbus-example-watch-name.c Strip copyright headers from examples 2010-05-11 15:50:19 -04:00
gdbus-example-watch-proxy.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-exit-on-close.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-export.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-introspection.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-message.c GDBusMessage: Don't reset serial number when copying 2010-09-09 15:15:13 -04:00
gdbus-names.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-non-socket.c GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe 2011-11-21 18:15:26 +00:00
gdbus-peer.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-proxy-threads.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-proxy-well-known-name.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-proxy.c tests: temporarily disable GDBus async proxy test 2012-05-01 15:16:05 -07:00
gdbus-serialization.c gdbus: test case for 673612 2012-04-10 16:39:49 -04:00
gdbus-sessionbus.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-sessionbus.h Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-test-codegen.c gdbus-codegen: Don't generate invalid GObject property names 2012-07-06 09:26:41 -04:00
gdbus-tests.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-tests.h Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-testserver.py GDBusProxy: Add G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES flag 2012-02-08 12:49:22 -05:00
gdbus-threading.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gmenumodel.c Improve GMenu test coverage 2012-06-04 06:04:28 -04:00
gschema-compile.c Add a test for CDATA in gschema.xml files 2011-11-07 00:14:28 -05:00
gsettings.c settings: Improve test coverage 2012-04-08 10:24:51 -04:00
gtesttlsbackend.c Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
gtesttlsbackend.h Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
gtlsconsoleinteraction.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
gtlsconsoleinteraction.h GTlsDatabase and related objects 2011-08-04 08:54:55 +02:00
httpd.c Don't use deprecated GThread API in gio tests 2011-10-10 09:49:50 -04:00
io-stream.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
key8.pem GTlsCertificate: support unencrypted PKCS#8 private keys 2011-11-18 20:26:58 -05:00
key-cert.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
key.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
live-g-file.c Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04:00
live-g-file.txt Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
Makefile.am application: Add dbus register/unregister hooks 2012-05-29 19:01:42 +02:00
memory-input-stream.c gio: add GBytes-based input/output stream methods 2012-05-24 17:48:13 -04:00
memory-output-stream.c gio: add GBytes-based input/output stream methods 2012-05-24 17:48:13 -04:00
mimeapps.c Add another mimeapps test 2011-09-26 16:54:23 -04:00
network-address.c networkaddress: Improve test coverage 2012-04-08 10:24:51 -04:00
network-monitor.c Improve GNetworkMonitor test coverage 2012-06-04 06:04:29 -04:00
nothing.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
org.gtk.schemasourcecheck.gschema.xml Add test case and fix some bugs 2011-11-17 14:03:39 +00:00
org.gtk.test.gschema Merge GSettings tests 2010-04-17 01:48:05 -04:00
org.gtk.test.gschema.xml GSettings: add G_SETTINGS_BIND_INVERT_BOOLEAN flag 2010-08-03 02:09:10 -04:00
pollable.c gio/tests/pollable: add can_poll() assertions 2012-06-20 10:14:01 -04:00
proxy-test.c gio/tests/proxy-test: fix cleanup 2012-06-21 15:13:06 -04:00
proxy.c gio/tests/proxy: don't use deprecated functions 2011-11-07 13:50:00 -05:00
readwrite.c Plug a mem leak in readwrite test 2010-09-03 15:44:28 -04:00
resolver.c Add support for MX, TXT, NS and SOA records to GResolver 2012-04-16 15:51:39 +02:00
resourceplugin.c Add tests for GResource 2012-01-13 17:12:53 +01:00
resources.c Improve GResource test coverage 2012-06-04 06:04:29 -04:00
send-data.c Add GSocketClient::event, for tracking socket client status 2011-12-22 15:44:24 -05:00
simple-async-result.c e G_SOURCE_CONTINUE/REMOVE internally 2012-01-25 16:15:18 -05:00
sleepy-stream.c sleepy-stream test: use a real GError domain 2011-09-30 13:17:27 +01:00
socket-client.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
socket-common.c gio/tests/socket-common.c: add a missing #ifdef G_OS_UNIX 2012-02-03 12:58:53 -05:00
socket-server.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
socket.c Allow slightly too small poll duration in /socket/timed_wait test 2012-06-26 18:34:08 +02:00
srvtarget.c Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
test1.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test2.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test2.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test3.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test3.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test4.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test-codegen.xml gdbus-codegen: Don't generate invalid GObject property names 2012-07-06 09:26:41 -04:00
test-io-stream.c GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe 2011-11-21 18:15:26 +00:00
test-io-stream.h GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe 2011-11-21 18:15:26 +00:00
test-pipe-unix.c tests: Add missing initializer for return value 2012-06-22 10:32:25 -04:00
test-pipe-unix.h GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe 2011-11-21 18:15:26 +00:00
test.gresource.xml resources: compiler: Allow stripping blanks from xml data 2012-01-25 14:47:37 +01:00
testenum.h Bug 622124 - implement flags for GSettings 2010-07-01 19:06:02 -04:00
tls-certificate.c Plug some leaks in the GIO tests 2011-12-14 12:41:15 +00:00
tls-interaction.c tls-interaction test: use a weak pointer instead of a deliberate use-after-free 2011-12-14 15:59:29 +00:00
unix-fd.c Improve GSocketAddress test coverage 2012-06-04 06:04:29 -04:00
unix-streams.c GUnixInput/OutputStream: fix blocking methods to always block 2011-11-14 18:31:21 -05:00
vfs.c Add a tests of some GVfs functions 2011-10-16 16:09:33 -04:00
volumemonitor.c gio/tests: Use g_list_free_full() convenience function 2012-01-02 23:18:22 +01:00
win32-streams.c Fix up testcase broken due to g_thread_new API change 2011-10-17 23:00:29 +02:00