re65.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>&lt;%GLibTestSubprocessFlags&gt;: </title>
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
  7. <link rel="home" href="index.html" title="">
  8. <link rel="up" href="ch01.html" title="GLib">
  9. <link rel="prev" href="re64.html" title="&lt;%GLibTestResult&gt;">
  10. <link rel="next" href="re66.html" title="&lt;GThread&gt;">
  11. <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
  12. <link rel="stylesheet" href="style.css" type="text/css">
  13. </head>
  14. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  15. <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
  16. <td width="100%" align="left" class="shortcuts"></td>
  17. <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
  18. <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
  19. <td><a accesskey="p" href="re64.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
  20. <td><a accesskey="n" href="re66.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
  21. </tr></table>
  22. <div class="refentry">
  23. <a name="id-1.1.66"></a><div class="titlepage"></div>
  24. <div class="refnamediv">
  25. <h2>&lt;%GLibTestSubprocessFlags&gt;</h2>
  26. <p>&lt;%GLibTestSubprocessFlags&gt;</p>
  27. </div>
  28. <div class="refsect1">
  29. <a name="id-1.1.66.2"></a><h2>Description</h2>
  30. <p>Flags to pass to <code class="function">g_test_trap_subprocess()</code> to control input and output.
  31. </p>
  32. <p>Note that in contrast with <code class="function">g_test_trap_fork()</code>, the default is to
  33. not show stdout and stderr.</p>
  34. </div>
  35. <div class="refsect1">
  36. <a name="id-1.1.66.3"></a><h2>Members</h2>
  37. <div class="refsect2">
  38. <a name="id-1.1.66.3.2"></a><h3>stdin</h3>
  39. <p class="remark"><em><span class="remark">alias <code class="code">G_TEST_SUBPROCESS_INHERIT_STDIN</code></span></em></p>
  40. <p>If this flag is given, the child
  41. process will inherit the parent's stdin. Otherwise, the child's
  42. stdin is redirected to <code class="code">/dev/null</code>.</p>
  43. </div>
  44. <div class="refsect2">
  45. <a name="id-1.1.66.3.3"></a><h3>stdout</h3>
  46. <p class="remark"><em><span class="remark">alias <code class="code">G_TEST_SUBPROCESS_INHERIT_STDOUT</code></span></em></p>
  47. <p>If this flag is given, the child
  48. process will inherit the parent's stdout. Otherwise, the child's
  49. stdout will not be visible, but it will be captured to allow
  50. later tests with <code class="function">g_test_trap_assert_stdout()</code>.</p>
  51. </div>
  52. <div class="refsect2">
  53. <a name="id-1.1.66.3.4"></a><h3>stderr</h3>
  54. <p class="remark"><em><span class="remark">alias <code class="code">G_TEST_SUBPROCESS_INHERIT_STDERR</code></span></em></p>
  55. <p>If this flag is given, the child
  56. process will inherit the parent's stderr. Otherwise, the child's
  57. stderr will not be visible, but it will be captured to allow
  58. later tests with <code class="function">g_test_trap_assert_stderr()</code>.</p>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="footer">
  63. <hr>Generated by GTK-Doc V1.33.1</div>
  64. </body>
  65. </html>