diff options
author | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 16:41:01 +0200 |
---|---|---|
committer | Vasilis Kalintiris <ehostunreach@gmail.com> | 2013-12-07 19:36:01 +0200 |
commit | 2490489d2fc292dc2892bedb299c66c1092f70a7 (patch) | |
tree | 1e6f09880aa9e9c33fd4f92556e5242eab888ed1 /tests/core/test_uname.in | |
parent | 776b12fc811e38907bcca064c2ffc4c221794e94 (diff) |
Use do_run_from_file() for test_uname
Diffstat (limited to 'tests/core/test_uname.in')
-rw-r--r-- | tests/core/test_uname.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/core/test_uname.in b/tests/core/test_uname.in new file mode 100644 index 00000000..5ea40b06 --- /dev/null +++ b/tests/core/test_uname.in @@ -0,0 +1,16 @@ + + #include <stdio.h> + #include <sys/utsname.h> + + int main() { + struct utsname u; + printf("ret: %d\n", uname(&u)); + printf("sysname: %s\n", u.sysname); + printf("nodename: %s\n", u.nodename); + printf("release: %s\n", u.release); + printf("version: %s\n", u.version); + printf("machine: %s\n", u.machine); + printf("invalid: %d\n", uname(0)); + return 0; + } +
\ No newline at end of file |