summaryrefslogtreecommitdiffstats
path: root/src/xdg-autostart-generator/test-xdg-autostart.c
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-02-09 14:06:40 +0100
committerGitHub <noreply@github.com>2021-02-09 14:06:40 +0100
commit0f15cb224347a97d9c0f6ab782af68139358e1ef (patch)
treef000a3ecea447dba89d84a3740bb3703bc29b6e1 /src/xdg-autostart-generator/test-xdg-autostart.c
parentMerge pull request #18416 from yuwata/strverscmp (diff)
parenttree-wide: fix the string concatenation warning with clang-12 (diff)
downloadsystemd-0f15cb224347a97d9c0f6ab782af68139358e1ef.tar.xz
systemd-0f15cb224347a97d9c0f6ab782af68139358e1ef.zip
Merge pull request #18470 from mrc0mmand/ci-clang-12
ci: run build test with clang-12 as well
Diffstat (limited to 'src/xdg-autostart-generator/test-xdg-autostart.c')
-rw-r--r--src/xdg-autostart-generator/test-xdg-autostart.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xdg-autostart-generator/test-xdg-autostart.c b/src/xdg-autostart-generator/test-xdg-autostart.c
index 5108beeaa9..c7a816bc25 100644
--- a/src/xdg-autostart-generator/test-xdg-autostart.c
+++ b/src/xdg-autostart-generator/test-xdg-autostart.c
@@ -37,17 +37,17 @@ static void test_xdg_format_exec_start(void) {
}
static const char* const xdg_desktop_file[] = {
- "[Desktop Entry]\n"
- "Exec\t =\t /bin/sleep 100\n" /* Whitespace Before/After = must be ignored */
- "OnlyShowIn = A;B;\n"
- "NotShowIn=C;;D\\\\\\;;E\n", /* "C", "", "D\;", "E" */
+ ("[Desktop Entry]\n"
+ "Exec\t =\t /bin/sleep 100\n" /* Whitespace Before/After = must be ignored */
+ "OnlyShowIn = A;B;\n"
+ "NotShowIn=C;;D\\\\\\;;E\n"), /* "C", "", "D\;", "E" */
- "[Desktop Entry]\n"
- "Exec=a\n"
- "Exec=b\n",
+ ("[Desktop Entry]\n"
+ "Exec=a\n"
+ "Exec=b\n"),
- "[Desktop Entry]\n"
- "Hidden=\t true\n",
+ ("[Desktop Entry]\n"
+ "Hidden=\t true\n"),
};
static void test_xdg_desktop_parse(unsigned i, const char *s) {