From: <ik...@us...> - 2008-03-28 03:27:36
|
Revision: 1357 http://cutter.svn.sourceforge.net/cutter/?rev=1357&view=rev Author: ikezoe Date: 2008-03-27 20:27:35 -0700 (Thu, 27 Mar 2008) Log Message: ----------- * cutter/cut-experimental.h, cutter/cut-public.h: Declare fork function. Modified Paths: -------------- trunk/ChangeLog trunk/cutter/cut-experimental.h trunk/cutter/cut-public.h Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-03-28 00:49:34 UTC (rev 1356) +++ trunk/ChangeLog 2008-03-28 03:27:35 UTC (rev 1357) @@ -1,6 +1,8 @@ 2008-03-28 Hiroyuki Ikezoe <poi...@ik...> * test/test-cut-fork.c: Added sample test. + * cutter/cut-experimental.h, cutter/cut-public.h: Declare fork + function. 2008-03-27 Hiroyuki Ikezoe <poi...@ik...> Modified: trunk/cutter/cut-experimental.h =================================================================== --- trunk/cutter/cut-experimental.h 2008-03-28 00:49:34 UTC (rev 1356) +++ trunk/cutter/cut-experimental.h 2008-03-28 03:27:35 UTC (rev 1357) @@ -44,6 +44,9 @@ const char *value; } CutTestAttribute; +#define cut_fork(time_out) \ + cut_test_context_trap_fork(get_current_test_context(), time_out) + #ifdef __cplusplus } #endif Modified: trunk/cutter/cut-public.h =================================================================== --- trunk/cutter/cut-public.h 2008-03-28 00:49:34 UTC (rev 1356) +++ trunk/cutter/cut-public.h 2008-03-28 03:27:35 UTC (rev 1357) @@ -59,6 +59,8 @@ const char **strings2); void *cut_test_context_get_user_data (CutTestContext *context); +int cut_test_context_trap_fork (CutTestContext *context, + unsigned int time_out); #ifdef __cplusplus } @@ -67,5 +69,5 @@ #endif /* __CUT_PUBLIC_H__ */ /* -vi:nowrap:ai:expandtab:sw=4 +vi:ts=4:nowrap:ai:expandtab:sw=4 */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |