From: <ik...@us...> - 2010-06-30 05:09:53
|
Revision: 3751 http://cutter.svn.sourceforge.net/cutter/?rev=3751&view=rev Author: ikezoe Date: 2010-06-30 04:21:59 +0000 (Wed, 30 Jun 2010) Log Message: ----------- test for writing to closed pipe. Modified Paths: -------------- cutter/trunk/test/gcutter/test-gcut-process.c Modified: cutter/trunk/test/gcutter/test-gcut-process.c =================================================================== --- cutter/trunk/test/gcutter/test-gcut-process.c 2010-06-30 02:31:08 UTC (rev 3750) +++ cutter/trunk/test/gcutter/test-gcut-process.c 2010-06-30 04:21:59 UTC (rev 3751) @@ -426,6 +426,22 @@ } #endif +void +test_impossible_write (void) +{ + GError *error = NULL; + + process = gcut_process_new(cut_test_echo_path, "XXX", NULL); + + gcut_process_run(process, &error); + gcut_assert_error(error); + + cut_assert_false(gcut_process_write(process, "XXX", 3, &error)); + gcut_assert_error(error); + + wait_reaped(); +} + /* vi:nowrap:ai:expandtab:sw=4:ts=4 */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |