diff options
author | Miguel <leu-gim@moy-server.ru> | 2014-01-26 05:37:18 +0400 |
---|---|---|
committer | Miguel <leu-gim@moy-server.ru> | 2014-01-26 05:37:18 +0400 |
commit | a8b4e3c764dd967e1ac90305a574c4cd5e0d019b (patch) | |
tree | 9165419d8557b493bf65a3de04f248ae6f2288b9 /tests/stdlib/tposix.nim | |
parent | 4396270fc7c447fa7ce9478a6bf9682ba7c496a7 (diff) | |
parent | 5d712e0d3f9f5b8e486720c8bedd749656b527d8 (diff) | |
download | Nim-a8b4e3c764dd967e1ac90305a574c4cd5e0d019b.tar.gz |
Merge branch 'devel' of git://github.com/Araq/Nimrod
Diffstat (limited to 'tests/stdlib/tposix.nim')
-rw-r--r-- | tests/stdlib/tposix.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/stdlib/tposix.nim b/tests/stdlib/tposix.nim new file mode 100644 index 000000000..bf0b49586 --- /dev/null +++ b/tests/stdlib/tposix.nim @@ -0,0 +1,16 @@ +# Test Posix interface + +when not defined(windows): + + import posix + + var + u: Tutsname + + discard uname(u) + + writeln(stdout, u.sysname) + writeln(stdout, u.nodename) + writeln(stdout, u.release) + writeln(stdout, u.machine) + |