| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
As far as I see these are not valid C and only allowed in C++11.
But they do occur in the wild (mingw headers) so let's try to handle them.
|
| |
|
|\
| |
| |
| |
| | |
Drop all Python 2 compat code
See merge request GNOME/gobject-introspection!85
|
| |
| |
| |
| | |
We only support 3.4+ now.
|
|/
|
|
|
|
|
|
|
|
|
| |
It just printed errors to stderr and always returns success even if parsing
fails. This prevents us to write any tests for it.
As a first step collect all lexing/parsing error messages and print them to stderr after
the scanner is done. This allows us to add some regression tests for !78.
In the future we probably want to raise an exception with those errors if parsing
fails.
|
|
|
|
|
|
|
|
|
|
|
| |
Some documentation tool (as hotdoc[0]) need to have information about
symbol declaration and documentation positions in the source files
to be able to do smart indexing (automatically build the documenation
index).
[0] https://hotdoc.github.io/
Fixes #175
|
| |
|
|
|
|
|
|
|
|
| |
This adds a property to RegressTestInterface which can be overridden, and
makes RegressTestSubObj implement it and override the property. This is
in order to catch the regressions in GJS around property access.
See gjs#193.
|
|\
| |
| |
| |
| | |
regress: Add test for write-only property
See merge request GNOME/gobject-introspection!67
|
| |
| |
| |
| |
| |
| |
| | |
GTK contains a few write-only properties, so it makes sense to have one
in the regress test suite.
See gjs!246
|
|/
|
|
|
|
|
|
|
| |
Configure option gir_dir_prefix is used to configure install dir for
.gir files, so add its value to include file search paths.
Fix for flake8 and meson-test at same time.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
|
|
|
|
|
|
| |
For some reason, meson build system did not install warnlib.
Let's do it.
Patch from Arch Linux
|
|
|
|
|
| |
tests/scanner/meson.build was missing leading to:
tests/meson.build:20:0: ERROR: Non-existent build file 'tests/scanner/meson.build'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
g-i includes an old version of pep8 and pyflakes and uses that
during "make check".
It (1) doesn't catch all cases newer versions of pycodestyle/pyflakes catch
and (2) doesn't test all Python files (3) doesn't work with meson.
Instead of updating just remove them and depend on flake8 instead.
To run the checks simply run flake8 in the root dir.
This also makes it possible to run those checks when using meson and
not autotools.
To not get test suite failures on flake8 updates move the checks from
"make check" to an extra "make check.quality" target.
|
|
|
|
|
| |
It was added as part of !25 but without any implementation.
This made instantiating TestObject fail which we do in the pygobject test suite.
|
|
|
|
|
| |
The ffi decls were added in cbdd9ee09e367e4dd to work around broken
ffi headers. Let's assume this is fixed now.
|
|
|
|
|
|
|
|
| |
Where it's easy add dummy args to match the cast; where the target is a subset just
prevent the warning with a cast to void*.
Provide a real copy function for the boxed type code in regress_foo.
This code is never executed afaics, but why not.
|
| |
|
|
|
|
|
| |
Except for the Python module because nothing in the CPython API is marked const
and we'd have to cast everywhere.
|
|
|
|
|
|
|
|
|
| |
* This adds a new dependency on autoconf-archive.
* Pass WARN_CFLAGS/WARN_LDFLAGS/WARN_SCANNERFLAGS to everything we control the source of
* Disables all warning flags which make the build error out for now, we'll re-enable them
in followup commits.
* AX_COMPILER_FLAGS is used with the release flag always on so we don't get
-Werror by default.
|
|
|
|
|
|
|
| |
I made this edit to Simon's commit to resolve a merge conflict, but I
messed it up. Revert to what it was before.
See #113.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Functional changes:
* Consistently check that return code from pkg-config is zero.
* Use shell word splitting rules to process pkg-config output to match
behaviour obtained by running `cc program.cc $(pkg-config --cflags ...)`.
Fixes issue #171 .
* Use user preferred encoding to process output from pkg-config on
Python 3. Python 2 behaviour defaults to using ascii encoding as before.
edit creiter: still ignore pkg-config errors by default for now as we
depend on it when glib is a subproject.
|
|
|
|
|
|
|
|
|
| |
Clear strv, boxed_struct, variant, boxed_glist, and object properties
during destruction. This fixes trivial memory leaks found in the PyGObject
tests suite.
https://bugzilla.gnome.org/show_bug.cgi?id=735013
Closes #113
|
|
|
|
|
|
|
|
|
|
|
| |
Clear the string property of RegressTestObj prior to setting within
the property setter.
Make sure the linked list, hash table, and string properties are cleared
during destruction.
This fixes trivial memory leaks found with the PyGObject test suite.
https://bugzilla.gnome.org/show_bug.cgi?id=735013
Closes #113
|
|
|
|
|
|
|
|
| |
Cleanup which replaces manual loop implementation with API calls
when setting the linked list property.
https://bugzilla.gnome.org/show_bug.cgi?id=735013
Closes #113
|
|
|
|
| |
autotools is picky on Windows and errors out otherwise
|
|
|
|
|
|
|
|
|
| |
This reverts f345916405d94829696985 and related. The commit states that
both versions are about the same in performance, but the C version is more code and
harder to maintain. It also states that the behaviour re invalid control
characters is better with the C version which produces entities. But those
make any Python xml parser fail, which given that most of our tooling is Python,
doesn't seem better to me, see #135.
|
| |
|
|
|
|
|
| |
There was a stray test() function already there. Move it to a unittest
file and run it with the other tests.
|
|\
| |
| |
| |
| | |
transformer: don't shell out for filter commands and make the tests work on Windows
See merge request GNOME/gobject-introspection!54
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Windows
Instead of passing the filter commands to the shell, split them with the shlex module.
This gives us more control and a more similar behaviour on unix/win32 systems.
I could only find two users in Debian which just call python with some script, so
this seems safe to me.
Adjust the tests accordingly and use the running python executable to test the
functionality as we can be sure that's available on all platforms. Also add a
new test for the symbol filter commadn which wasn't tested before.
|
|/
|
|
|
|
|
| |
Use the test executable to generate files in a temporary location
and use difflib to compare their content.
This removes the requirement on "diff" for the test.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Casting a function type to a type with more parameters is invalid and
triggers a warning on some compilers:
installed-tests/gimarshallingtests.c:
In function ‘gi_marshalling_tests_interface_get_type’: error: cast
between incompatible function types from ‘void (*)(void *)’ to
‘void (*)(void *, void *)’ [-Werror=cast-function-type]
Add those additional parameters to shut up the warnings.
https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/53
|
| |
|
|
|
|
|
|
| |
Removes the dependency on bash there, so we can potentially use it on
Windows as well. Not integrated with meson yet, but will hopefully make
it easier to do so.
|
|
|
|
| |
These tests only get run with autotools atm
|
|
|
|
|
|
|
|
| |
This allows us to build with Python 2 and run tests with it.
This requires the new "python" meson module which was added in 0.46.0 so
bump the required meson version (glib needs a newer one anyway).
Also fixes a small test error under Python 2.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Use a single pattern that matches against potentially complete paths.
* Extract filename only afterwards on platforms where it is necessary.
* Match patterns against complete words in ldd output instead of searching
for them inside the lines - this avoids unintentional matches without
complexity of negative lookbehinds and negative lookaheads.
Fixes issue #208.
|
| |
|
|
|
|
| |
See !24 for the discussion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Recognize additional floating point types from ISO/IEC TS 18661-3:2015,
that are already in use by glibc. This continues work from commit
8cf3e8e5cf6d0d49db359f50c6eb0bc9ca22fbef and fixes issue #201.
* _Float16
* _Float32
* _Float64
* _Float128
* _Float32x
* _Float64x
* _Float128x
Use a single BASIC_TYPE token for basic types, while using its string
representation as a type name. This also fixes incorrect type used
previously for __uint128_t, __int128_t, __uint128, __int128, and
_Float128 (they have been mapped to int and float respectively).
Also avoid mapping bool and _Bool to gboolean as those are distinct
types and generally ABI incompatible. Fixes issue #202.
After this changes, when _Bool, _Float* or _int128 types are used
as a part of public API, g-ir-scanner will produce warning about
unresolved type. This is appropriate given that they are currently
inexpressible in GIRepository format.
|
|\
| |
| |
| |
| | |
meson: Add the giscanner warning tests
See merge request GNOME/gobject-introspection!40
|
| |
| |
| |
| | |
I couldn't get it to work on Windows, so skip that for now.
|
|/ |
|
|
|
|
|
| |
As far as I can tell there isn't one of these yet. It's a readonly int
property whose value is always 42.
|
|
|
|
|
| |
Float literal is silently promoted to a double here. Change it to a
double literal.
|
|
|
|
|
|
|
| |
This is modeled after GtkEditable::insert-text which isn't marshalled
properly in GJS.
See gjs#147.
|
|
|
|
|
|
|
| |
It includes a pointer parameter; for some reason, the pointer parameter
breaks g_object_info_find_signal() but a parameter-less signal doesn't.
See gjs#147.
|
| |
|