[MSAN] send output to stderr in test: pthread_getaffinity_np.

Must send output to stderr to view it.
This will be rolled back when diagnosis is complete.

Depends on: https://reviews.llvm.org/D127320

Differential Revision: https://reviews.llvm.org/D127346
This commit is contained in:
Kevin Athey 2022-06-08 14:14:08 -07:00
parent dd2f290918
commit d97d930d92
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ int main() {
cpu_set_t set_x;
int res = pthread_getaffinity_np(pthread_self(), sizeof(set_x), &set_x);
if (res != 0)
printf("res: %d\n", res);
fprintf(stderr, "res: %d\n", res);
assert(res == 0);
assert(CPU_COUNT_S(sizeof(set_x), &set_x) == get_nprocs());