forked from OSchip/llvm-project
[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:
parent
dd2f290918
commit
d97d930d92
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue