mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
02de235059
desktop-app-info test may fail when repeated with multiple concurrent processes because the actions test relies on checking the existence of in the shared build directory, so by doing something like: meson test -C _build desktop-app-info -t 0.3 --repeat 80 We may end up in timeout errors, because we are waiting for files that have been already deleted by other processes. To avoid this, let's rely on writing the files on `$G_TEST_TMPDIR` env variable, that is always set and unique, given that we're using the G_TEST_OPTION_ISOLATE_DIRS test option.
17 lines
399 B
Desktop File
17 lines
399 B
Desktop File
[Desktop Entry]
|
|
Type=Application
|
|
Actions=frob;tweak;twiddle;broken;
|
|
Exec=true
|
|
|
|
[Desktop Action frob]
|
|
Name=Frobnicate
|
|
Exec=sh -c '[ -d "$G_TEST_TMPDIR" ] && touch "$G_TEST_TMPDIR/frob"'
|
|
|
|
[Desktop Action tweak]
|
|
Name=Tweak
|
|
Exec=sh -c '[ -d "$G_TEST_TMPDIR" ] && touch "$G_TEST_TMPDIR/tweak"'
|
|
|
|
[Desktop Action twiddle]
|
|
Name=Twiddle
|
|
Exec=sh -c '[ -d "$G_TEST_TMPDIR" ] && touch "$G_TEST_TMPDIR/twiddle"'
|