// -*- c++ -*- //------------------------------------------------------------------------------ // fdset_test.cpp //------------------------------------------------------------------------------ // $Id: fdset_test.cpp,v 1.2 2002/12/05 03:20:17 vlg Exp $ //------------------------------------------------------------------------------ // Copyright (c) 2002 by Vladislav Grinchenko // // 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 of the License, or (at your option) any later version. //------------------------------------------------------------------------------ #include #include #include "assa/FdSet.h" #include "assa/Logger.h" using namespace ASSA; int main () { int fds[] = { 0, 1, 2, 5, 15 }; int fdsz = sizeof(fds)/sizeof(int); int i; int failed = 0; int total = 5; std::cout << "= Running fdset_test =\n"; FdSet s1; std::cout << "Step1: Testing setting bits ... "; for (i=0; i