projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new test system
[libc-test]
/
src
/
functional
/
sscanf_long.c
diff --git
a/src/functional/sscanf_long.c
b/src/functional/sscanf_long.c
index
a26999d
..
160648b
100644
(file)
--- a/
src/functional/sscanf_long.c
+++ b/
src/functional/sscanf_long.c
@@
-11,10
+11,10
@@
static void setrl(int r, long lim)
struct rlimit rl;
if (getrlimit(r, &rl))
struct rlimit rl;
if (getrlimit(r, &rl))
- error("getrlimit %d: %s\n", r, strerror(errno));
+
t_
error("getrlimit %d: %s\n", r, strerror(errno));
rl.rlim_cur = lim;
if (setrlimit(r, &rl))
rl.rlim_cur = lim;
if (setrlimit(r, &rl))
- error("setrlimit %d: %s\n", r, strerror(errno));
+
t_
error("setrlimit %d: %s\n", r, strerror(errno));
}
int main(void)
}
int main(void)
@@
-26,7
+26,7
@@
int main(void)
char c;
if (!s)
char c;
if (!s)
- return error("out of memory");
+ return
t_
error("out of memory");
setrl(RLIMIT_STACK, 128*1024);
for (i = 0; i < n; i++) s[i] = '1';
setrl(RLIMIT_STACK, 128*1024);
for (i = 0; i < n; i++) s[i] = '1';
@@
-41,11
+41,11
@@
int main(void)
i = sscanf(s, "%f %c", &f, &c);
if (i != 2)
i = sscanf(s, "%f %c", &f, &c);
if (i != 2)
- error("sscanf returned %d, want 2\n", i);
+
t_
error("sscanf returned %d, want 2\n", i);
if (f != INFINITY)
if (f != INFINITY)
- error("sscanf(longnum, \"%%f\") read %f, want inf\n", f);
+
t_
error("sscanf(longnum, \"%%f\") read %f, want inf\n", f);
if (c != '1')
if (c != '1')
- error("sscanf(\"1\", %%c) read '%c', want '1'\n", c);
+
t_
error("sscanf(\"1\", %%c) read '%c', want '1'\n", c);
free(s);
free(s);
- return t
est
_status;
+ return t_status;
}
}