summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Move "blurb", "nick" and "notify" into PropertyRico Tzschichholz2016-11-112-0/+15
|
* Transform CCode*'s "deprecated" into using CCodeNode's "modifiers"Rico Tzschichholz2016-11-111-0/+16
|
* tests: Add missing main() in bug641418-*.testRico Tzschichholz2016-11-103-0/+9
|
* Add G_GNUC_PRINTF/SCANF attribute for Printf/ScanfFormat functionsRico Tzschichholz2016-11-092-0/+77
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710862
* vala: check a property has an accessor and/or a mutatorAlistair Thomas2016-11-083-0/+22
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=773956
* tests: More cases of FormatArg functionsRico Tzschichholz2016-11-071-0/+26
|
* codegen: Add G_GNUC_FORMAT attribute for FormatArg functionsJürg Billeter2016-11-072-0/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774060
* tests: Enable -Werror=format-nonliteralJürg Billeter2016-11-071-1/+1
|
* Fix broken destruction of null-terminated arrays in async data structsRichard Wiedenhöft2016-11-072-0/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=762819
* codegen: Allow underscores in type parameter namesSeverin Heiniger2016-11-032-0/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=644938
* tests: Enable -Werror=format-securityJürg Billeter2016-11-031-1/+1
|
* Fix deprecation of class/struct fieldsRico Tzschichholz2016-11-032-0/+33
| | | | | Respect the "deprecated" attributes given to class and struct fields, while actually adding G_GNUC_DEPRECATED to their declaration.
* Check printf arguments of object creation expressionsJürg Billeter2016-11-014-0/+16
|
* codegen: Only emit notify signals if the value actually changedEvan Nemerson2016-10-252-0/+54
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=631267
* Add explicit copy method for arraysLuca Bruno2016-10-201-0/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=650663