Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: tests/irt_ext/libc/file_tests.c

Issue 511253005: Added irt extension support for supplying the nacl_irt_memory interface. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Moved size declaration down Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/irt_ext/libc/file_tests.h ('k') | tests/irt_ext/libc/libc_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/irt_ext/libc/file_tests.h ('k') | tests/irt_ext/libc/libc_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698