Commit graph

11 commits

Author SHA1 Message Date
Benjamin Berg
3cbe926f46 tests: Disable ATK as it is currently creating issues 2018-12-07 15:49:13 +01:00
RyuzakiKK
b8972e885c tests: free TzInfo
The timezone information is allocated with `tz_info_from_location` but
never deallocated.
LeakSanitizer complains about this memory leak.

```
Direct leak of 13568 byte(s) in 424 object(s) allocated from:
/build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:95
    #1 0x7f63899bab21 in g_malloc0 (/usr/lib/libglib-2.0.so.0+0x51b21)
../tests/datetime/test-timezone-gfx.c:30
    #3 0x7f63899dc76a  (/usr/lib/libglib-2.0.so.0+0x7376a)
```
2018-08-24 14:43:29 +00:00
RyuzakiKK
2b14ccdf86 tests: close opened directory
The directory opened with `g_dir_open` is never closed, so LeakSanitizer
complains about a memory leaks.

```
Direct leak of 8 byte(s) in 1 object(s) allocated from:
/build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:86
    #1 0x7f2012908ac9 in g_malloc (/usr/lib/libglib-2.0.so.0+0x51ac9)
    #2 0x7f2012922aac in g_memdup (/usr/lib/libglib-2.0.so.0+0x6baac)
    #3 0x7f20128ed2d5  (/usr/lib/libglib-2.0.so.0+0x362d5)
    #4 0x7f20128ed338 in g_dir_open (/usr/lib/libglib-2.0.so.0+0x36338)
../tests/datetime/test-endianess.c:29
    #6 0x7f201292a76a  (/usr/lib/libglib-2.0.so.0+0x7376a)
    #7 0x7f201292a69a  (/usr/lib/libglib-2.0.so.0+0x7369a)
(/usr/lib/libglib-2.0.so.0+0x73951)
    #9 0x7f201292a972 in g_test_run (/usr/lib/libglib-2.0.so.0+0x73972)
    #10 0x560ad630cbff in main ../tests/datetime/test-endianess.c:66
```
2018-08-24 14:43:29 +00:00
Ting-Wei Lan
9df14924d4 tests: Don't hard-code the path to python
Python isn't always installed in /usr/bin. If we hard-code the path,
these tests will fail on *BSD because they install python in different
prefixes such as /usr/local and /usr/pkg.
2018-08-13 01:18:16 +00:00
Claudio André
4f8a64ac25 tests: increase the tests timeout
This is only needed for non AMD64.
2018-07-15 01:47:24 +00:00
Georges Basile Stavracas Neto
eea231dc1c tests: Run each datetime test under Xvfb
That way, gtk_init() cannot fail.
2018-05-09 18:52:48 -03:00
Georges Basile Stavracas Neto
8404f526b6 tests: Make logging verbose 2018-05-09 18:33:18 -03:00
Georges Basile Stavracas Neto
c23e8f3547 tests: Rework test-timezone-gfx 2018-05-09 18:33:18 -03:00
Georges Basile Stavracas Neto
0b854910bb tests: Rely only on zone.tab
First of all, this is a complete rewrite of the
timezone tests. Everything was revisited, starting
from code style, to concepts, etc.

The problem  with the previous timezone test was that
is was relying on listing the /usr/share/zoneinfo
directory, and assuming that those entries would be
always present.

Turns out, some of them are extensions, some of them
are undocumented files, etc. A huge mess. I could've
blacklisted the undesired files and folders, but that
would still be insufficient for other OSes like *BSDs
and Sun.

The final solution was pretty straightforward: only
use the information from zone.tab to run the tests.
2018-05-09 15:38:12 -03:00
Georges Basile Stavracas Neto
af0186aaf9 project: Update meson files
I probably have OCD. Seeing these files
with this poor alignment gives me physical
pain.
2018-05-03 00:45:29 -03:00
Benjamin Berg
b15be07738 Move datetime tests into tests subdirectory 2018-04-17 15:26:59 +02:00