1
/* @(#)osetest.c 19.1 (ES0-DMD) 02/25/03 14:33:04 */
2
/*===========================================================================
3
Copyright (C) 1995 European Southern Observatory (ESO)
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License as
7
published by the Free Software Foundation; either version 2 of
8
the License, or (at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public
16
License along with this program; if not, write to the Free
17
Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
20
Corresponding concerning ESO-MIDAS should be addressed as follows:
21
Internet e-mail: midas@eso.org
22
Postal address: European Southern Observatory
23
Data Management Division
24
Karl-Schwarzschild-Strasse 2
25
D 85748 Garching bei Muenchen
27
===========================================================================*/
32
#define errexit(x) { fprintf(stderr,x); ospexit(1); }
33
#define errmess(x) fprintf(stderr,x)
37
int oseprep(),oseset(),oseread(),oseclear(),osewait();
43
errmess("Oseprep BAD\n");
44
fprintf(stderr,"oserror:%x\n",oserror);
48
if((oseset(0))== -1) {
49
errmess("Oseset BAD\n");
50
fprintf(stderr,"ret:%x\n",oserror);
53
if(oseread(0)!= 1 || oseread(1))
54
errmess("Oseread BAD\n");
56
/* CGS000: Ospcreate modified in the current version */
57
/* if (ospcreate("osetest1","proc1",1,-1,-1)== -1) */
58
if (ospcreate("osetest1","osetest1"-1,-1)== -1)
59
errexit("Ospcreate BAD on osetest1\n");
62
errexit("Child Oseset was BAD\n");
65
errmess("Osewait BAD\n");