--- a/tests/condvar4.c
+++ b/tests/condvar4.c
@@ -119,7 +119,7 @@
 
   cvthing.shared = 0;
 
-  assert((t[0] = pthread_self()) != NULL);
+  assert((t[0] = pthread_self()).p != NULL);
 
   assert(cvthing.notbusy == PTHREAD_COND_INITIALIZER);