~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/libaio/harness/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <errno.h>
 
3
#include <assert.h>
 
4
#include <stdlib.h>
 
5
 
 
6
#include <sys/types.h>
 
7
#include <sys/stat.h>
 
8
#include <fcntl.h>
 
9
#include <unistd.h>
 
10
 
 
11
#include <libaio.h>
 
12
 
 
13
#if defined(__i386__)
 
14
#define KERNEL_RW_POINTER       ((void *)0xc0010000)
 
15
#else
 
16
//#warning Not really sure where kernel memory is.  Guessing.
 
17
#define KERNEL_RW_POINTER       ((void *)0xffffffffc0010000)
 
18
#endif
 
19
 
 
20
 
 
21
char test_name[] = TEST_NAME;
 
22
 
 
23
#include TEST_NAME
 
24
 
 
25
int main(void)
 
26
{
 
27
        int res;
 
28
 
 
29
#if defined(SETUP)
 
30
        SETUP;
 
31
#endif
 
32
 
 
33
        res = test_main();
 
34
        printf("test %s completed %s.\n", test_name, 
 
35
                res ? "FAILED" : "PASSED"
 
36
                );
 
37
        fflush(stdout);
 
38
        return res ? 1 : 0;
 
39
}