/* * Copyright (c) 1997, 1998, 1999 The University of Utah and * the Computer Systems Laboratory at the University of Utah (CSL). * * This file is part of Flick, the Flexible IDL Compiler Kit. * * Flick 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. * * Flick 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 Flick; see the file COPYING. If not, write to * the Free Software Foundation, 59 Temple Place #330, Boston, MA 02111, USA. */ /* * This file contains a set of tests using the functions defined in * mig-tests.defs. */ #include #include #include #include #include #include #include #include #include "mig-tests-client.h" #define SENT_ONE "This is a very profound sentence." #define SENT_TWO "Sentence two expands on sentence one's profoundness." #define SENT_THREE "Our third sentence is quite boring." /* macro for calling a client stub */ #define _try(_func, _params) {\ int _result;\ printf("Calling function %s...\n", #_func);\ if ((_result = _func _params) != KERN_SUCCESS) {\ printf(" FAILED CALL to function %s: "\ "result = %d (0x%08x) [%s]\n",\ #_func, _result, _result,\ mach_error_string(_result));\ errs++;\ }\ } /* function to print an array of integers */ void parr(int *a, int size) { int i; if (!a) { printf("NULL\n"); return; } printf("{ "); for (i=0; i 512)) { failed(test_servercopy); } for (i=0; i 512)) { failed(test_servercopy); } for (i=0; i