| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 /* | 6 /* |
| 7 * A stand-alone application that tests thread local storage (TLS) on the | 7 * A stand-alone application that tests thread local storage (TLS) on the |
| 8 * current platform. It is written to avoid locks and condition variables. | 8 * current platform. It is written to avoid locks and condition variables. |
| 9 * Since it is testing thread-specific stuff, it's good to use as little | 9 * Since it is testing thread-specific stuff, it's good to use as little |
| 10 * *other* thread-specific stuff as possible for these tests. | 10 * *other* thread-specific stuff as possible for these tests. |
| 11 * | 11 * |
| 12 * Note that this test hangs in pthread_join() on ARM QEMU. | 12 * Note that this test hangs in pthread_join() on ARM QEMU. |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 #include "native_client/src/include/nacl_defines.h" |
| 16 |
| 15 #if NACL_LINUX || NACL_OSX | 17 #if NACL_LINUX || NACL_OSX |
| 16 #include <pthread.h> | 18 #include <pthread.h> |
| 17 #endif | 19 #endif |
| 18 #include <stdio.h> | 20 #include <stdio.h> |
| 19 #include <stdlib.h> | 21 #include <stdlib.h> |
| 20 #include <string.h> | 22 #include <string.h> |
| 21 | 23 |
| 22 #include "native_client/src/include/portability.h" | 24 #include "native_client/src/include/portability.h" |
| 23 #include "native_client/src/shared/platform/nacl_log.h" | 25 #include "native_client/src/shared/platform/nacl_log.h" |
| 24 #include "native_client/src/shared/platform/nacl_time.h" | 26 #include "native_client/src/shared/platform/nacl_time.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 } | 246 } |
| 245 } | 247 } |
| 246 if (!test_passed) { | 248 if (!test_passed) { |
| 247 ErrorExit(); | 249 ErrorExit(); |
| 248 } | 250 } |
| 249 | 251 |
| 250 NaClLog(LOG_INFO, "TEST PASSED\n"); | 252 NaClLog(LOG_INFO, "TEST PASSED\n"); |
| 251 Fini(); | 253 Fini(); |
| 252 return 0; | 254 return 0; |
| 253 } | 255 } |
| OLD | NEW |