shithub: lu9-p9

Download patch

ref: 77da164f11d49df4956c34348407d1631f653935
parent: ae8a8b505161c5cf0dfd385145562e5fba21c7e3
author: kvik <kvik@a-b.xyz>
date: Fri Apr 23 08:15:37 EDT 2021

test: do a memory leak check

--- a/test/test.lua
+++ b/test/test.lua
@@ -320,3 +320,14 @@
 do
 	assert(p9.cleanname("/usr///./glenda/.") == "/usr/glenda")
 end
+
+
+
+
+-- Check for leaks (might not come from us)
+do
+	if p9.rfork("proc") == 0 then
+		p9.exec("leak", p9.ppid())
+	end
+	p9.wait()
+end