mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
tests: More useful output of make check
Instead of spilling thousands of lines of output, make check now runs the test-suite in about 100 lines or so. If running under make check, the output of tests is reduced. The MAKE_CHECK environment variable is used for this, so that when running the test manually, the full output is still shown. Furthermore, pa_log is used consistently instead of printf, so that all test output goes to stderr by default. Colored output from make check goes to stdout.
This commit is contained in:
parent
6be5515e6a
commit
681aaf7a9a
20 changed files with 144 additions and 115 deletions
|
|
@ -27,6 +27,8 @@
|
|||
#include <pulse/util.h>
|
||||
#include <pulse/xmalloc.h>
|
||||
|
||||
#include <pulsecore/log.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
char *exename;
|
||||
size_t allocated = 128;
|
||||
|
|
@ -35,13 +37,13 @@ int main(int argc, char *argv[]) {
|
|||
exename = pa_xmalloc(allocated);
|
||||
|
||||
if (!pa_get_binary_name(exename, allocated)) {
|
||||
printf("failed to read binary name\n");
|
||||
pa_log_error("failed to read binary name");
|
||||
pa_xfree(exename);
|
||||
break;
|
||||
}
|
||||
|
||||
if (strlen(exename) < allocated - 1) {
|
||||
printf("%s\n", exename);
|
||||
pa_log("%s", exename);
|
||||
pa_xfree(exename);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue