Print this page
11841 badseg test times out

Split Close
Expand all
Collapse all
          --- old/usr/src/test/os-tests/tests/i386/badseg_exec.c
          +++ new/usr/src/test/os-tests/tests/i386/badseg_exec.c
↓ open down ↓ 130 lines elided ↑ open up ↑
 131  131  
 132  132  int
 133  133  main(int argc, char *argv[])
 134  134  {
 135  135          struct rlimit rl = { 0, };
 136  136  
 137  137          if (setrlimit(RLIMIT_CORE, &rl) != 0) {
 138  138                  err(EXIT_FAILURE, "failed to disable cores");
 139  139          }
 140  140  
 141      -        for (selector = 0; selector < 8194; selector++) {
      141 +        for (selector = 0; selector < 512; selector++) {
 142  142                  inchild(resetcs);
 143  143                  inchild(resetds);
 144  144                  inchild(resetes);
 145  145                  inchild(resetfs);
 146  146                  inchild(resetgs);
 147  147                  inchild(resetss);
 148  148                  inchild(badds);
 149  149                  inchild(bades);
 150  150                  inchild(badfs);
 151  151                  inchild(badgs);
 152  152                  inchild(badss);
 153  153          }
 154  154  
 155  155          exit(EXIT_SUCCESS);
 156  156  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX