OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2014 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 <errno.h> | 7 #include <errno.h> |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <string.h> | 10 #include <string.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #include "native_client/src/include/nacl_macros.h" | 13 #include "native_client/src/include/nacl_macros.h" |
14 #include "native_client/tests/irt_ext/error_report.h" | 14 #include "native_client/tests/irt_ext/error_report.h" |
15 #include "native_client/tests/irt_ext/file_desc.h" | 15 #include "native_client/tests/irt_ext/file_desc.h" |
16 #include "native_client/tests/irt_ext/libc/file_tests.h" | 16 #include "native_client/tests/irt_ext/libc/libc_test.h" |
17 | 17 |
18 #define TEST_DIRECTORY "test_directory" | 18 #define TEST_DIRECTORY "test_directory" |
19 | 19 |
20 typedef int (*TYPE_file_test)(void); | 20 typedef int (*TYPE_file_test)(void); |
21 static struct file_desc_environment g_file_desc_env; | 21 static struct file_desc_environment g_file_desc_env; |
22 | 22 |
23 int do_mkdir_rmdir_test(void) { | 23 int do_mkdir_rmdir_test(void) { |
24 struct inode_data *parent_dir = NULL; | 24 struct inode_data *parent_dir = NULL; |
25 struct inode_data *test_dir = NULL; | 25 struct inode_data *test_dir = NULL; |
26 | 26 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 irt_ext_test_print("File Tests Failed [%d/%d]\n", num_failures, | 130 irt_ext_test_print("File Tests Failed [%d/%d]\n", num_failures, |
131 NACL_ARRAY_SIZE(g_file_tests)); | 131 NACL_ARRAY_SIZE(g_file_tests)); |
132 } else { | 132 } else { |
133 irt_ext_test_print("File Tests Passed [%d/%d]\n", | 133 irt_ext_test_print("File Tests Passed [%d/%d]\n", |
134 NACL_ARRAY_SIZE(g_file_tests), | 134 NACL_ARRAY_SIZE(g_file_tests), |
135 NACL_ARRAY_SIZE(g_file_tests)); | 135 NACL_ARRAY_SIZE(g_file_tests)); |
136 } | 136 } |
137 | 137 |
138 return num_failures; | 138 return num_failures; |
139 } | 139 } |
OLD | NEW |