| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2013 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 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| 11 #include "native_client/src/include/nacl_defines.h" |
| 12 |
| 11 #if !NACL_WINDOWS | 13 #if !NACL_WINDOWS |
| 12 # include <sys/mman.h> | 14 # include <sys/mman.h> |
| 13 #endif | 15 #endif |
| 14 | 16 |
| 15 #include "native_client/src/include/portability.h" | 17 #include "native_client/src/include/portability.h" |
| 16 #include "native_client/src/include/portability_io.h" | 18 #include "native_client/src/include/portability_io.h" |
| 17 #include "native_client/src/include/nacl_compiler_annotations.h" | 19 #include "native_client/src/include/nacl_compiler_annotations.h" |
| 18 #include "native_client/src/include/nacl_macros.h" | 20 #include "native_client/src/include/nacl_macros.h" |
| 19 | 21 |
| 20 #include "native_client/src/shared/platform/nacl_check.h" | 22 #include "native_client/src/shared/platform/nacl_check.h" |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 err_count += (*tests[ix].test_func)(&hd, tests[ix].test_specifics); | 469 err_count += (*tests[ix].test_func)(&hd, tests[ix].test_specifics); |
| 468 CloseTestFile(&hd); | 470 CloseTestFile(&hd); |
| 469 } | 471 } |
| 470 } | 472 } |
| 471 | 473 |
| 472 NaClPlatformFini(); | 474 NaClPlatformFini(); |
| 473 | 475 |
| 474 /* we ignore the 2^32 or 2^64 total errors case */ | 476 /* we ignore the 2^32 or 2^64 total errors case */ |
| 475 return (err_count > 255) ? 255 : err_count; | 477 return (err_count > 255) ? 255 : err_count; |
| 476 } | 478 } |
| OLD | NEW |