mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 08:36:28 +03:00
debian autopkgtest instances (and maybe other test systems) will report a failure if messages are sent to stderr. Since these messages are diagnostic messages for the test suite, and not indicators of actual failure, they should go to stdout, not stderr.
14 lines
251 B
C
14 lines
251 B
C
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
void getpid_func() {
|
|
printf(" called getpid_func()\n");
|
|
}
|
|
|
|
|
|
static __attribute__((constructor)) void getpid_init() {
|
|
pid_t pid = getpid();
|
|
printf(" getpid() yielded %d\n", pid);
|
|
}
|