File: Use-dummy-graphics-for-testing.patch

package info (click to toggle)
wcslib 6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,552 kB
  • sloc: ansic: 31,973; lex: 8,974; fortran: 6,634; sh: 3,369; sed: 496; pascal: 184; makefile: 15
file content (246 lines) | stat: -rw-r--r-- 6,260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
From: Ole Streicher <debian@liska.ath.cx>
Date: Sun, 15 Jan 2017 16:35:33 +0100
Subject: Use dummy graphics for testing.

The tests run unattended anyway, so there is no use of a visible graphics.
---
 C/test/tcel1.c         | 2 +-
 C/test/tcel2.c         | 2 +-
 C/test/tpih2.c         | 2 +-
 C/test/tprj2.c         | 2 +-
 C/test/tspc.c          | 2 +-
 C/test/ttab2.c         | 2 +-
 C/test/ttab3.c         | 2 +-
 C/test/twcsmix.c       | 2 +-
 Fortran/test/tcel1.f   | 2 +-
 Fortran/test/tpih2.f   | 2 +-
 Fortran/test/tprj2.f   | 2 +-
 Fortran/test/tspc.f    | 2 +-
 Fortran/test/ttab2.f   | 2 +-
 Fortran/test/ttab3.f   | 2 +-
 Fortran/test/twcsmix.f | 2 +-
 pgsbox/cpgtest.c       | 2 +-
 pgsbox/pgtest.f        | 2 +-
 17 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/C/test/tcel1.c b/C/test/tcel1.c
index 57aa90b..4f97332 100644
--- a/C/test/tcel1.c
+++ b/C/test/tcel1.c
@@ -80,7 +80,7 @@ int main()
 
 
   /* PGPLOT initialization. */
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   /* Define pen colours. */
diff --git a/C/test/tcel2.c b/C/test/tcel2.c
index 71a61e7..8e24ba6 100644
--- a/C/test/tcel2.c
+++ b/C/test/tcel2.c
@@ -106,7 +106,7 @@ int main()
 
 
   /* PGPLOT initialization. */
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   /* Define pen colours. */
diff --git a/C/test/tpih2.c b/C/test/tpih2.c
index 619ba33..38c338e 100644
--- a/C/test/tpih2.c
+++ b/C/test/tpih2.c
@@ -147,7 +147,7 @@ int main()
   trc[0] = naxis[0] + 0.5f;
   trc[1] = naxis[1] + 0.5f;
 
-  strcpy(devtyp, "/XWINDOW");
+  strcpy(devtyp, "/NULL");
   cpgbeg(0, devtyp, 1, 1);
   cpgvstd();
 
diff --git a/C/test/tprj2.c b/C/test/tprj2.c
index 630d817..82883f0 100644
--- a/C/test/tprj2.c
+++ b/C/test/tprj2.c
@@ -60,7 +60,7 @@ int main()
 
 
   /* PGPLOT initialization. */
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   /* Define pen colours. */
diff --git a/C/test/tspc.c b/C/test/tspc.c
index 13d6458..bab44ec 100644
--- a/C/test/tspc.c
+++ b/C/test/tspc.c
@@ -69,7 +69,7 @@ int main()
 
 
   /* PGPLOT initialization. */
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   naxisj = NSPEC;
diff --git a/C/test/ttab2.c b/C/test/ttab2.c
index 6fbe5f1..2235d03 100644
--- a/C/test/ttab2.c
+++ b/C/test/ttab2.c
@@ -77,7 +77,7 @@ int main()
 
 
   /* PGPLOT initialization. */
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
   cpgvstd();
   cpgsch(0.7f);
diff --git a/C/test/ttab3.c b/C/test/ttab3.c
index 9156947..1a934fe 100644
--- a/C/test/ttab3.c
+++ b/C/test/ttab3.c
@@ -74,7 +74,7 @@ int main()
 
 
   /* PGPLOT initialization. */
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
   cpgvstd();
   cpgsch(0.7f);
diff --git a/C/test/twcsmix.c b/C/test/twcsmix.c
index 5b20a06..8372225 100644
--- a/C/test/twcsmix.c
+++ b/C/test/twcsmix.c
@@ -93,7 +93,7 @@ int main()
 
 
   /* PGPLOT initialization. */
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   /* Define pen colours. */
diff --git a/Fortran/test/tcel1.f b/Fortran/test/tcel1.f
index c8c321b..bf58619 100644
--- a/Fortran/test/tcel1.f
+++ b/Fortran/test/tcel1.f
@@ -77,7 +77,7 @@
 
 
 *     PGPLOT initialization.
-      CALL PGBEG (0, '/xwindow', 1, 1)
+      CALL PGBEG (0, '/null', 1, 1)
 
 *     Define pen colours.
       CALL PGSCR (0, 0.00, 0.00, 0.00)
diff --git a/Fortran/test/tpih2.f b/Fortran/test/tpih2.f
index 09b211b..fb4eefd 100644
--- a/Fortran/test/tpih2.f
+++ b/Fortran/test/tpih2.f
@@ -131,7 +131,7 @@
       TRC(1) = NAXIS(1) + 0.5
       TRC(2) = NAXIS(2) + 0.5
 
-      DEVTYP = '/XWINDOW'
+      DEVTYP = '/NULL'
       CALL PGBEG(0, DEVTYP, 1, 1)
       CALL PGVSTD()
 
diff --git a/Fortran/test/tprj2.f b/Fortran/test/tprj2.f
index d6e0864..ca63287 100644
--- a/Fortran/test/tprj2.f
+++ b/Fortran/test/tprj2.f
@@ -48,7 +48,7 @@
  20   CONTINUE
 
 *     PGPLOT initialization.
-      CALL PGBEG (0, '/xwindow', 1, 1)
+      CALL PGBEG (0, '/null', 1, 1)
 
 *     Define pen colours.
       CALL PGSCR (0, 0.00, 0.00, 0.00)
diff --git a/Fortran/test/tspc.f b/Fortran/test/tspc.f
index 1999db7..3917692 100644
--- a/Fortran/test/tspc.f
+++ b/Fortran/test/tspc.f
@@ -55,7 +55,7 @@
       NFAIL = 0
 
 *     PGPLOT initialization.
-      CALL PGBEG (0, '/xwindow', 1, 1)
+      CALL PGBEG (0, '/null', 1, 1)
 
       NAXISJ = NSPEC
       CRPIXJ = NAXISJ/2 + 1
diff --git a/Fortran/test/ttab2.f b/Fortran/test/ttab2.f
index 8ad71f6..cfacff3 100644
--- a/Fortran/test/ttab2.f
+++ b/Fortran/test/ttab2.f
@@ -72,7 +72,7 @@
 
 
 *     PGPLOT initialization.
-      CALL PGBEG (0, '/xwindow', 1, 1)
+      CALL PGBEG (0, '/null', 1, 1)
       CALL PGVSTD ()
       CALL PGSCH (0.7)
 
diff --git a/Fortran/test/ttab3.f b/Fortran/test/ttab3.f
index 5c0150d..bdb83df 100644
--- a/Fortran/test/ttab3.f
+++ b/Fortran/test/ttab3.f
@@ -67,7 +67,7 @@
 
 
 *     PGPLOT initialization.
-      CALL PGBEG (0, '/xwindow', 1, 1)
+      CALL PGBEG (0, '/null', 1, 1)
       CALL PGVSTD ()
       CALL PGSCH (0.7)
       CALL PGWNAD (-135.0, 135.0, -95.0, 140.0)
diff --git a/Fortran/test/twcsmix.f b/Fortran/test/twcsmix.f
index 70844b0..5c7ac42 100644
--- a/Fortran/test/twcsmix.f
+++ b/Fortran/test/twcsmix.f
@@ -89,7 +89,7 @@
      :        '-----------------------------------------')
 
 *     PGPLOT initialization.
-      CALL PGBEG (0, '/xwindow', 1, 1)
+      CALL PGBEG (0, '/null', 1, 1)
 
 *     Define pen colours.
       CALL PGSCR (0, 0.00, 0.00, 0.00)
diff --git a/pgsbox/cpgtest.c b/pgsbox/cpgtest.c
index bd3fbe6..0efc1f0 100644
--- a/pgsbox/cpgtest.c
+++ b/pgsbox/cpgtest.c
@@ -67,7 +67,7 @@ int main()
   trc[0] = naxis[0] + 0.5f;
   trc[1] = naxis[1] + 0.5f;
 
-  strcpy(devtyp, "/XWINDOW");
+  strcpy(devtyp, "/NULL");
   cpgbeg(0, devtyp, 1, 1);
 
   j = 16;
diff --git a/pgsbox/pgtest.f b/pgsbox/pgtest.f
index 9bc1ef3..d13ae87 100644
--- a/pgsbox/pgtest.f
+++ b/pgsbox/pgtest.f
@@ -60,7 +60,7 @@
       TRC(2) = NAXIS(2) + 0.5
 
 *      CALL PGBEG (0, '?', 1, 1)
-      call pgbeg (0, '/xw', 1, 1)
+      call pgbeg (0, '/null', 1, 1)
 
       CALL PGQINF ('TYPE', DEVTYP, J)
       IF (DEVTYP.EQ.'PS'  .OR.