summary refs log tree commit diff stats
path: root/tests/tposix.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tposix.nim')
-rwxr-xr-xtests/tposix.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/tposix.nim b/tests/tposix.nim
new file mode 100755
index 000000000..87ea3acaf
--- /dev/null
+++ b/tests/tposix.nim
@@ -0,0 +1,13 @@
+# Test Posix interface
+
+import posix
+
+var
+  u: Tutsname
+
+discard uname(u)
+
+writeln(stdout, u.sysname)
+writeln(stdout, u.nodename)
+writeln(stdout, u.release)
+writeln(stdout, u.machine)