mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
config.h needs to be consistently included before any standard headers if we ever want to set feature test macros (like _GNU_SOURCE or whatever) inside. It can lead to hard-to-debug issues without that. It can also be problematic just for our own HAVE_* that it may define if it's not consistently made available before our own headers. Just always include it first, before everything. We already did this in many files, just not consistently.
39 lines
763 B
C
39 lines
763 B
C
/* PipeWire */
|
|
/* SPDX-FileCopyrightText: Copyright © 2019 Wim Taymans */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#include "config.h"
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#include "pwtest.h"
|
|
|
|
PWTEST(openal_info_test)
|
|
{
|
|
#ifdef OPENAL_INFO_PATH
|
|
int status = pwtest_spawn(OPENAL_INFO_PATH, (char *[]){ "openal-info", NULL });
|
|
pwtest_int_eq(WEXITSTATUS(status), 0);
|
|
return PWTEST_PASS;
|
|
#else
|
|
return PWTEST_SKIP;
|
|
#endif
|
|
}
|
|
|
|
PWTEST(pactl_test)
|
|
{
|
|
#ifdef PACTL_PATH
|
|
int status = pwtest_spawn(PACTL_PATH, (char *[]){ "pactl", "info", NULL });
|
|
pwtest_int_eq(WEXITSTATUS(status), 0);
|
|
return PWTEST_PASS;
|
|
#else
|
|
return PWTEST_SKIP;
|
|
#endif
|
|
}
|
|
|
|
PWTEST_SUITE(pw_array)
|
|
{
|
|
pwtest_add(pactl_test, PWTEST_ARG_DAEMON);
|
|
pwtest_add(openal_info_test, PWTEST_ARG_DAEMON);
|
|
|
|
return PWTEST_PASS;
|
|
}
|