|
@@ -34,6 +34,7 @@
|
|
|
#include "logging.h"
|
|
|
#include "futextest.h"
|
|
|
|
|
|
+#define TEST_NAME "futex-wait-private-mapped-file"
|
|
|
#define PAGE_SZ 4096
|
|
|
|
|
|
char pad[PAGE_SZ] = {1};
|
|
@@ -60,7 +61,7 @@ void *thr_futex_wait(void *arg)
|
|
|
ret = futex_wait(&val, 1, &wait_timeout, 0);
|
|
|
if (ret && errno != EWOULDBLOCK && errno != ETIMEDOUT) {
|
|
|
error("futex error.\n", errno);
|
|
|
- print_result(RET_ERROR);
|
|
|
+ print_result(TEST_NAME, RET_ERROR);
|
|
|
exit(RET_ERROR);
|
|
|
}
|
|
|
|
|
@@ -120,6 +121,6 @@ int main(int argc, char **argv)
|
|
|
pthread_join(thr, NULL);
|
|
|
|
|
|
out:
|
|
|
- print_result(ret);
|
|
|
+ print_result(TEST_NAME, ret);
|
|
|
return ret;
|
|
|
}
|