summary refs log tree commit diff stats
path: root/tests/stdlib/tposix.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tposix.nim')
-rw-r--r--tests/stdlib/tposix.nim16
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)
+