瀏覽代碼

Run gcc tests in Chapter 6 as a non-privileged user

Xi Ruoyao 7 年之前
父節點
當前提交
551c5e2583
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. 3 0
      chapter01/changelog.xml
  2. 7 2
      chapter06/gcc.xml

+ 3 - 0
chapter01/changelog.xml

@@ -44,6 +44,9 @@
     <listitem>
       <para>2018-08-12</para>
       <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - 在第 6 章中以非特权用户身份运行 gcc 测试。</para>
+        </listitem>
         <listitem>
           <para>[bdubbs] - 将 shadow 移到 gcc 之前,
           以便使用 su 以非特权用户身份运行 gcc 测试。</para>

+ 7 - 2
chapter06/gcc.xml

@@ -109,9 +109,14 @@ cd       build</userinput></screen>
 
 <screen><userinput remap="test">ulimit -s 32768</userinput></screen>
 
-    <para>测试编译结果,但出错时继续执行其他测试:</para>
+    <para>删除一个已知会导致问题的测试:</para>
 
-<screen><userinput remap="test">make -k check</userinput></screen>
+<screen><userinput remap="test">rm ../gcc/testsuite/g++.dg/pr83239.C</userinput></screen>
+
+    <para>以非特权用户身份测试编译结果,但出错时继续执行其他测试:</para>
+
+<screen><userinput remap="test">chown -Rv nobody .
+su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
 
     <para>输入以下命令查看测试结果的摘要:</para>