~vorlon/ubuntu/natty/eglibc/multiarch

« back to all changes in this revision

Viewing changes to string/tst-strlen.c

  • Committer: Steve Langasek
  • Date: 2011-02-18 21:18:44 UTC
  • mfrom: (103.1.7 eglibc)
  • Revision ID: steve.langasek@linaro.org-20110218211844-lodmi8b1qhyq3f3x
Tags: 2.13~pre1-0ubuntu1+multiarch.1
merge from natty

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
              buf[words * 4 + 3] = (last & 8) != 0 ? 'e' : '\0';
32
32
              buf[words * 4 + 4] = '\0';
33
33
 
34
 
              if (strlen (buf) != words * 4 + lens[last]
35
 
                  || strnlen (buf, -1) != words * 4 + lens[last])
36
 
                {
37
 
                  printf ("failed for base=%Zu, words=%Zu, and last=%Zu\n",
38
 
                          base, words, last);
 
34
              if (strlen (buf) != words * 4 + lens[last])
 
35
                {
 
36
                  printf ("\
 
37
strlen failed for base=%Zu, words=%Zu, and last=%Zu (is %zd, expected %zd)\n",
 
38
                          base, words, last,
 
39
                          strlen (buf), words * 4 + lens[last]);
 
40
                  return 1;
 
41
                }
 
42
 
 
43
              if (strnlen (buf, -1) != words * 4 + lens[last])
 
44
                {
 
45
                  printf ("\
 
46
strnlen failed for base=%Zu, words=%Zu, and last=%Zu (is %zd, expected %zd)\n",
 
47
                          base, words, last,
 
48
                          strnlen (buf, -1), words * 4 + lens[last]);
39
49
                  return 1;
40
50
                }
41
51
            }