projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add run wrapper, move t_printf and t_status into separate translation unit
[libc-test]
/
src
/
functional
/
sscanf_long.c
diff --git
a/src/functional/sscanf_long.c
b/src/functional/sscanf_long.c
index
160648b
..
c9208af
100644
(file)
--- a/
src/functional/sscanf_long.c
+++ b/
src/functional/sscanf_long.c
@@
-6,17
+6,6
@@
#include <sys/resource.h>
#include "test.h"
#include <sys/resource.h>
#include "test.h"
-static void setrl(int r, long lim)
-{
- struct rlimit rl;
-
- if (getrlimit(r, &rl))
- t_error("getrlimit %d: %s\n", r, strerror(errno));
- rl.rlim_cur = lim;
- if (setrlimit(r, &rl))
- t_error("setrlimit %d: %s\n", r, strerror(errno));
-}
-
int main(void)
{
enum {n = 8*1024*1024};
int main(void)
{
enum {n = 8*1024*1024};
@@
-27,7
+16,7
@@
int main(void)
if (!s)
return t_error("out of memory");
if (!s)
return t_error("out of memory");
-
setrl(RLIMIT_STACK, 128
*1024);
+
t_setrlim(RLIMIT_STACK, 100
*1024);
for (i = 0; i < n; i++) s[i] = '1';
s[n-3] = ' ';
for (i = 0; i < n; i++) s[i] = '1';
s[n-3] = ' ';