Skip to contentSkip to conversation

tests: add simple forker test

PATCH New Serge E. Hallyn 1 participant 1 message Jun 24, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: add simple forker test

Another braindead but useful test. The point here is to start testing cryo on multiple tasks.

If you run

	./tests/fork 0

then restart works fine. If you run
./tests/fork 1 # (or anything greater than 1)
then there is a segfault on restart. It looks a lot like the problem which Benjamin solved by re-enabling the NPTL code, but I haven't quite tracked it down yet.

-serge

From 8dd009389ada5106ad8c5d8b6e565ec75f13177a Mon Sep 17 00:00:00 2001
From: Serge E. Hallyn <serue-r/[email protected]>
Date: Tue, 24 Jun 2008 10:12:34 -0400
Subject: [PATCH 1/1] tests: add simple forker test

Add a test which forks atoi(argv[1]) times, then sleeps 1 min.

---
 tests/Makefile |    2 +-
 tests/fork.c   |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 1 deletions(-)
 create mode 100644 tests/fork.c
tests/Makefile +1 -1
index 925b7af..f8233a2 100644
@@ -1,4 +1,4 @@
-TARGETS = sleep mksysvipc pause_asm pipe sockudp
+TARGETS = sleep mksysvipc pause_asm pipe sockudp fork
 
 CFLAGS = -static
 
tests/fork.c new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
1.5.4.1