aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/fuchsia/test/cprng2
-rw-r--r--sys/fuchsia/test/vmo5
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/fuchsia/test/cprng b/sys/fuchsia/test/cprng
new file mode 100644
index 000000000..0b87bf8d6
--- /dev/null
+++ b/sys/fuchsia/test/cprng
@@ -0,0 +1,2 @@
+zx_cprng_draw(&(0x7f0000000000/0x100), 0x100)
+zx_cprng_draw(&(0x7f0000000000/0x1), 0x1)
diff --git a/sys/fuchsia/test/vmo b/sys/fuchsia/test/vmo
new file mode 100644
index 000000000..444e579d9
--- /dev/null
+++ b/sys/fuchsia/test/vmo
@@ -0,0 +1,5 @@
+zx_vmo_create(0x100, 0x0, &AUTO=<r0=>0x0)
+zx_vmo_write(r0, &AUTO="010101", 0x01, 0x4)
+zx_handle_close(r0)
+zx_vmo_write(r0, &AUTO="010101", 0x01, 0x4) # ZX_ERR_BAD_HANDLE
+zx_handle_close(r0) # ZX_ERR_BAD_HANDLE