2 * Check handling of localtime() returning NULL in printleader().
4 * Copyright (c) 2018-2019 The strace developers.
7 * SPDX-License-Identifier: GPL-2.0-or-later
25 assert(!clock_gettime(CLOCK_REALTIME, &ts));
27 pid = syscall(__NR_gettid);
29 /* We expect localtime to fail here */
30 printf("%lld.%06ld gettid() = %d\n",
31 (long long) ts.tv_sec, (long) (ts.tv_nsec / 1000), pid);
33 printf("%lld.%06ld +++ exited with 0 +++\n",
34 (long long) ts.tv_sec, (long) (ts.tv_nsec / 1000));