2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
12 #pragma GCC diagnostic ignored "-Wnonnull"
14 #define KNOWN_FILE_SIZE 30
16 int main(int argc, char** argv) {
20 printf("Usage: sel_ldr test_stat.nexe test_stat_data\n");
25 assert(-1 == stat(NULL, &st));
26 assert(EFAULT == errno);
27 assert(-1 == stat(".", NULL));
28 assert(EFAULT == errno);
30 assert(0 == stat(argv[1], &st));
32 assert(KNOWN_FILE_SIZE == st.st_size);