summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* girparser: Fix parsing of delegate-alias without targetRico Tzschichholz2017-06-212-0/+21
| | | | | | "has_target" is a ccode-attribute-based property, so don't explicitly set it and rely on attribute-list-copy. Otherwise there will a fatal duplicated CCode attribute.
* codegen: Don't allow assigning delegate if no target/closure is availableRico Tzschichholz2017-06-192-0/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=598869
* codegen: NoAccessorMethod attribute is allowed for gobject-properties onlyRico Tzschichholz2017-06-192-0/+10
|
* codegen: Nullable ValueType requires POINTER as marshaller signatureRico Tzschichholz2017-06-172-0/+58
| | | | | | This is missing in https://bugzilla.gnome.org/show_bug.cgi?id=758816 https://bugzilla.gnome.org/show_bug.cgi?id=783897
* codegen: Make the task_complete flag for < 2.44 more similar to >= 2.44Carlos Garnacho2017-06-122-0/+16
| | | | | | | | | | | | | | | | According to the g_task_get_completed() docs (which we rely on for glib >= 2.44 targets): "This changes from FALSE to TRUE after the task's callback is invoked, and will return FALSE from inside the callback". So to make the code paths most similar to >= 2.44 (when g_task_get_completed is available), wrap the GAsyncReadyCallback with one of our own, that just invokes the nested callback (if any) and turns on the flag. Also remove the code turning on the flag on finish(), it's superfluous now and there are no guarantees that it will be invoked. https://bugzilla.gnome.org/show_bug.cgi?id=783543
* gvariant: Optimize (de)serialization of arrays with type-signature "ay"Ole André Vadla Ravnås2017-06-072-0/+19
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=772426
* codegen: Support renamed signalsRico Tzschichholz2017-06-072-0/+37
| | | | | | | The CCode attribute 'cname' needs to be the canonical representation as it is expected in C. https://bugzilla.gnome.org/show_bug.cgi?id=731547
* tests: Add some constructor testsRico Tzschichholz2017-05-172-0/+32
|
* codegen: Use *_free_full to free GLib.List, GLib.SList and GLib.QueueRico Tzschichholz2017-05-172-0/+48
| | | | | g_list_free_full and g_slist_free_full are available since 2.28. g_queue_free_full is available since 2.32.
* gdbus: Don't leak nested HashTable on deserializationRico Tzschichholz2017-05-172-0/+64
| | | | | | Additionally make sure types derived from string are freed, e.g. ObjectPath https://bugzilla.gnome.org/show_bug.cgi?id=782719
* tests: Additional basic-types tests for dbusRico Tzschichholz2017-05-151-0/+6
|
* codegen: Fix finally blocks with async yieldsLuca Bruno2017-05-092-0/+51
| | | | | | | The Method.yield_count is not correct because in C the finally blocks may be emitted twice. https://bugzilla.gnome.org/show_bug.cgi?id=741929
* tests: Use dbus-run-session instead of dbus-launchMichael Biebl2017-04-261-3/+3
| | | | | | | | | | dbus-launch is X11-specific and contains a lot of legacy code to support X11 autolaunching. It should not be part of the Wayland future. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836067 https://bugzilla.gnome.org/show_bug.cgi?id=771455
* vala: Handle non-null in coalescing expressionMarvin W2017-04-172-1/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=611223
* testrunner: Respect given VALAFLAGSMarvin W2017-04-171-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=611223
* codegen: Don't leak target-reference when casting/assigning owned delegatesRico Tzschichholz2017-03-222-0/+91
| | | | | | Regression of 6d07669384cdb70c3c657dba67d5048212f25da9 https://bugzilla.gnome.org/show_bug.cgi?id=780426
* codegen: Fix delegate initializer for instance fieldsRico Tzschichholz2017-03-222-0/+25
| | | | | | Set delegate-target to "self" which is available in *_instance_init(). https://bugzilla.gnome.org/show_bug.cgi?id=683925
* vala: Fix MemberAccess.is_non_null() for EnumValue constantsOle André Vadla Ravnås2017-03-142-0/+11
| | | | | | This is because an EnumValue object does not have a type reference. https://bugzilla.gnome.org/show_bug.cgi?id=780050
* codegen: Properly null-out source on ownership-transfer of delegatesMarvin W2017-03-142-0/+15
|
* tests: Merge two main methodsRico Tzschichholz2017-03-141-26/+20
|
* signalmodule: Handle nullable ValueTypes properly and treat them as pointerRico Tzschichholz2017-03-142-0/+71
| | | | | | | Nullable value-types are actually pointers to heap-allocated structures. Therefore a pointer-based marshaller is required for those types. https://bugzilla.gnome.org/show_bug.cgi?id=758816
* codegen: Property equality check can't be applied to non-automatic-bodiesRico Tzschichholz2017-03-122-0/+21
| | | | | | This is check was introduced with 64b9bfc1bc0abfed45ad07a8ebaef8a5f167f848 https://bugzilla.gnome.org/show_bug.cgi?id=779955
* class: Perform more thorough compatibility check of inherited propertiesRico Tzschichholz2017-03-104-0/+60
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=779038
* vala: Disallow private accessors in overridable propertiesSimon Werbeck2017-03-092-0/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=603491
* codegen: Fix base-access from within overriding struct-property-accessorRico Tzschichholz2017-03-082-0/+56
| | | | | | Based on patch by gandalfn https://bugzilla.gnome.org/show_bug.cgi?id=764481
* codegen: Check there is a return error location before using itCarlos Garnacho2017-03-061-1/+2
| | | | | | Fixes client-side dbus generation on methods that don't throw any error. https://bugzilla.gnome.org/show_bug.cgi?id=779652
* tests: Add "finish_instance = false" test-caseRico Tzschichholz2017-03-062-0/+44
| | | | | | Also references IOSteam.splice_async() as compilation check. https://bugzilla.gnome.org/show_bug.cgi?id=710103
* tests: Add "use_string_marshalling = true" dbus-testCarlos Garnacho2017-03-062-0/+17
| | | | | | | | | | | | | Commit 09e6818d01e introduced the possibility of inserting _error labels at the end of functions, which make C compilers angry. This "test" (no actual tests are run, just compile correctness is checked here) triggers some of these situations. the "test3" abstract method is trickier though, it doesn't warn but produces code with early returns, which in practice means possible leaks. https://bugzilla.gnome.org/show_bug.cgi?id=778540
* memberaccess: Don't resolve base_method/property twiceRico Tzschichholz2017-03-052-0/+19
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=779219
* signalmodule: Add support for array-parameters with rank > 1Francisco Serna2017-03-052-0/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=778632
* tests: Add a bunch of chain-up testsRico Tzschichholz2017-03-0511-0/+191
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=567269
* tests: Enable -Werror=int-conversionRico Tzschichholz2017-02-241-1/+1
|
* codegen: Fix instance parameter for property setter in SimpleType structsNikolay Orlyuk2017-02-242-0/+24
| | | | | | | | | Add test-case and fix code generator for call to the setter to pass instance as a value rather than as a pointer to value. Based on patches by Nathan Summers. https://bugzilla.gnome.org/show_bug.cgi?id=657346
* tests: Add N-D array testsRico Tzschichholz2017-02-211-0/+30
|
* tests: Add test for dbus fd passing failuresCarlos Garnacho2017-02-182-0/+78
| | | | | | | The server will exhaust all fds before the fd list in the dbus request is opened. We do expect it to fail in the client. https://bugzilla.gnome.org/show_bug.cgi?id=778540
* glib-2.0: Mark va_list.arg() with simple-generics to allow int64 or doubleRico Tzschichholz2017-02-151-1/+5
|
* codegen: Support casting arbitary value-types to arraysRico Tzschichholz2017-02-122-0/+59
| | | | | | | | Also calculate a valid length for the resulting array. This enables easier usage of common uint8[]-based buffer API. https://bugzilla.gnome.org/show_bug.cgi?id=777194
* vala: Non-null initializers are not allowed for owned namespace fieldsRico Tzschichholz2017-02-122-0/+9
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=777697
* codegen: Fix memory leak when using object initializer for propertiesRico Tzschichholz2017-02-122-0/+80
| | | | | | | Assigning values to properties this way leads to a ref/copy of the source and therefore requires a unref/destroy afterwards. https://bugzilla.gnome.org/show_bug.cgi?id=766739
* codegen: Don't return void for non-nullable simple-type structsMichael James Gratton2017-02-082-0/+27
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=778224
* tests: Add testcase for double-free regressionOle André Vadla Ravnås2017-01-162-0/+24
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=777242
* D-Bus: support [DBus (signature = ...)] for propertiesAbderrahim Kitouni2017-01-052-0/+137
| | | | | | | This was working for methods and signals, but not for properties. Also add tests for all cases. https://bugzilla.gnome.org/show_bug.cgi?id=744595
* Move writing of G_GNUC_DEPRECATED down to CCodeDeclarator implementationsRico Tzschichholz2017-01-041-0/+37
| | | | | Doing so in CCodeDeclaration is error-prone. CCodeVariableDeclarator still requires special handling which isn't done here.
* vala: Check inferred generic-types of MemberAccessRico Tzschichholz2016-12-102-0/+10
| | | | | | | Although avoid this check for simple-generic accesses where this would be too strict and not wanted. https://bugzilla.gnome.org/show_bug.cgi?id=775466
* vala: Check generic-types count of DelegateTypeMatthias Berndt2016-12-102-0/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=772204
* codegen: Reference struct fields with their actual cnameRico Tzschichholz2016-12-082-0/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=775761
* methodcall: Don't try to remove N_/NC_ while they are properly handled in CRico Tzschichholz2016-11-303-1/+54
| | | | | | | This avoids messing around with the ownership and properly invokes copying if needed. https://bugzilla.gnome.org/show_bug.cgi?id=642350
* tests: Add gir-test for fixed-size arraysRico Tzschichholz2016-11-272-0/+69
|
* tests: Enable -Werror=redundant-declsRico Tzschichholz2016-11-111-1/+1
|
* ccode: Fix and disable deprecating EnumValueRico Tzschichholz2016-11-111-1/+3
| | | | | This still requires GCC 6.0 and later to work. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47043