Ignore:
Timestamp:
Jun 27, 2005, 5:05:29 AM (20 years ago)
Author:
bird
Message:

testcase adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/stdio-common/tstscanf.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2088 r2089  
    339339
    340340    res = sscanf ("-InF", "%f", &value);
    341     if (res != 1 || isinf (value) != -1)
     341    if (res != 1 || isinf (value) == 0/*!= -1*/) /* (the standard doesn't define -1 and 1, only non-zero. bsd doesn't do this.) */
    342342      {
    343343        fputs ("test failed!\n", stdout);
     
    346346
    347347    res = sscanf ("+InfiNiTY", "%f", &value);
    348     if (res != 1 || isinf (value) != 1)
     348    if (res != 1 || isinf (value) == 0/* != 1*/)
    349349      {
    350350        fputs ("test failed!\n", stdout);
Note: See TracChangeset for help on using the changeset viewer.