X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftestopenf.c;fp=tests%2Ftestopenf.c;h=6650b0aba6ed1294e86107bfb5591b136e66b160;hb=9c78378bebc1a9f3d400f422df8ede9efea57dea;hp=0000000000000000000000000000000000000000;hpb=faa778968d1a7dfeaebc9fe4b847e691dc62fd15;p=util-vserver.git diff --git a/tests/testopenf.c b/tests/testopenf.c new file mode 100644 index 0000000..6650b0a --- /dev/null +++ b/tests/testopenf.c @@ -0,0 +1,55 @@ +// $Id$ + +// Copyright (C) 2003 Enrico Scholz +// based on tests/testopenf.cc by Jacques Gelinas +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +#include +#include +#include +#include +#include +#include + +int main (int argc, char *argv[]) +{ + if (argc != 3){ + fprintf (stderr,"testlimit nbprocess nbopen\n"); + }else{ + int nbproc = atoi(argv[1]); + int nbopen = atoi(argv[2]); + int i; + int status; + for (i=0; i