View | Details | Raw Unified | Return to bug 210855 | Differences between
and this patch

Collapse All | Expand All

(-)getc_putc_helper.cpp (-1 / +7 lines)
Lines 45-51 int main(int argc, char *argv[]) Link Here
45
    return 1;
45
    return 1;
46
  }
46
  }
47
  fflush(NULL);
47
  fflush(NULL);
48
  TEST_FUNC_READ("getc() no thread", if( (c = getc(fp)) == EOF), res[1]);
48
  bool b = false;
49
  int temp = getc(fp);
50
  if (temp != EOF)
51
  { c=(char)temp;
52
    b=true;
53
  }
54
  TEST_FUNC_READ("getc() no thread", if (b == false), res[1]);
49
  if(fseek(fp, 0, SEEK_SET) != 0)
55
  if(fseek(fp, 0, SEEK_SET) != 0)
50
  {
56
  {
51
    fprintf(stderr, "Can't seek.\n");
57
    fprintf(stderr, "Can't seek.\n");
(-)getc_putc.cpp (-2 / +14 lines)
Lines 206-212 int main(int argc, char *argv[]) Link Here
206
    return 1;
206
    return 1;
207
  }
207
  }
208
  fflush(NULL);
208
  fflush(NULL);
209
  TEST_FUNC_READ("getc()", if( (c = getc(fp)) == EOF), res[Getc]);
209
  int temp = getc(fp);
210
  bool b=false;
211
  if (temp!=EOF)
212
  { c=(char)temp;
213
    b=true;
214
  }
215
  TEST_FUNC_READ("getc()", if (b == false), res[Getc]); 
210
  if(fseek(fp, 0, SEEK_SET) != 0)
216
  if(fseek(fp, 0, SEEK_SET) != 0)
211
  {
217
  {
212
    fprintf(stderr, "Can't seek.\n");
218
    fprintf(stderr, "Can't seek.\n");
Lines 221-227 int main(int argc, char *argv[]) Link Here
221
    return 1;
227
    return 1;
222
  }
228
  }
223
  fflush(NULL);
229
  fflush(NULL);
224
  TEST_FUNC_READ("getc_unlocked()", if( (c = getc_unlocked(fp)) == EOF), res[GetcUnlocked]);
230
  temp = getc_unlocked(fp);
231
  b=false;
232
  if (temp != EOF)
233
  { c=(char)temp;
234
    b=true;
235
  } 	
236
  TEST_FUNC_READ("getc_unlocked()", if (b == false), res[GetcUnlocked]);
225
237
226
  if(!quiet)
238
  if(!quiet)
227
    printf("done\n");
239
    printf("done\n");

Return to bug 210855