+2014-12-12 Stefan Liebler <stli@linux.vnet.ibm.com>
+
+ * nptl/tst-mutex6.c
+ (ATTR_NULL): New define checks ATTR against NULL.
+ (do_test): Use !ATTR_NULL instead of ATTR != NULL.
+ * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
+
2014-12-11 James Lemke <jwlemke@codesourcery.com>
[BZ #17581]
2014-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
- sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
+ * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
Truncating assembler expression to a .long expression.
2014-12-11 Andreas Schwab <schwab@suse.de>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
+#include <stdbool.h>
#ifndef ATTR
# define ATTR attr
#endif
+#ifndef ATTR_NULL
+# define ATTR_NULL (ATTR == NULL)
+#endif
static int
do_test (void)
pthread_mutex_t m;
int e = pthread_mutex_init (&m, ATTR);
- if (ATTR != NULL && e == ENOTSUP)
+ if (!ATTR_NULL && e == ENOTSUP)
{
puts ("cannot support selected type of mutexes");
e = pthread_mutex_init (&m, NULL);
return 1;
}
- if (ATTR != NULL && pthread_mutexattr_destroy (ATTR) != 0)
+ if (!ATTR_NULL && pthread_mutexattr_destroy (ATTR) != 0)
{
puts ("mutexattr_destroy failed");
return 1;