From: Nicholas Nethercote Date: Sun, 15 Feb 2004 16:12:35 +0000 (+0000) Subject: whoops X-Git-Tag: svn/VALGRIND_2_1_1~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e90b8cb29271eaf368998274c54dec08d70ffe8;p=thirdparty%2Fvalgrind.git whoops git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2252 --- diff --git a/none/tests/Makefile.am b/none/tests/Makefile.am index 2864539e7c..a9c20dae04 100644 --- a/none/tests/Makefile.am +++ b/none/tests/Makefile.am @@ -50,6 +50,7 @@ EXTRA_DIST = $(noinst_SCRIPTS) \ smc1.stderr.exp smc1.stdout.exp smc1.vgtest \ syscall-restart1.vgtest syscall-restart1.stdout.exp syscall-restart1.stderr.exp \ syscall-restart2.vgtest syscall-restart2.stdout.exp syscall-restart2.stderr.exp \ + system.stdout.exp system.vgtest yield.stdout.exp yield.vgtest check_PROGRAMS = \ @@ -59,7 +60,7 @@ check_PROGRAMS = \ munmap_exe map_unmap mremap rcl_assert \ rcrl readline1 resolv seg_override sha1_test shortpush shorts smc1 \ tls.so tls2.so tls pth_blockedsig \ - syscall-restart1 syscall-restart2 \ + syscall-restart1 syscall-restart2 system \ coolo_sigaction gxx304 yield AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include @@ -107,6 +108,7 @@ shortpush_SOURCES = shortpush.c shorts_SOURCES = shorts.c syscall_restart1_SOURCES = syscall-restart1.c syscall_restart2_SOURCES = syscall-restart2.c +system_SOURCES = system.c tls_SOURCES = tls.c tls2.c tls_DEPENDENCIES = tls.so tls_LDFLAGS = -Wl,-rpath,$(srcdir) diff --git a/none/tests/closeall.c b/none/tests/closeall.c new file mode 100644 index 0000000000..facf6a580c --- /dev/null +++ b/none/tests/closeall.c @@ -0,0 +1,17 @@ +#include +#include +#include +#include + +int main(int argc, char **argv) +{ + struct rlimit lim; + int fd; + + getrlimit(RLIMIT_NOFILE, &lim); + + for ( fd = 3; fd < lim.rlim_cur; fd++ ) + close( fd ); + + exit( 0 ); +} diff --git a/none/tests/closeall.stderr.exp b/none/tests/closeall.stderr.exp new file mode 100644 index 0000000000..139597f9cb --- /dev/null +++ b/none/tests/closeall.stderr.exp @@ -0,0 +1,2 @@ + + diff --git a/none/tests/closeall.vgtest b/none/tests/closeall.vgtest new file mode 100644 index 0000000000..23738b1575 --- /dev/null +++ b/none/tests/closeall.vgtest @@ -0,0 +1 @@ +prog: closeall