@@ -115,7 +115,7 @@ static int checkoutput(const char *testname,
115
115
* Only stdin/out/err open
116
116
* No slot for return status must log error.
117
117
*/
118
- static int test0 (const void * unused ATTRIBUTE_UNUSED )
118
+ static int test0 (const void * unused G_GNUC_UNUSED )
119
119
{
120
120
virCommandPtr cmd ;
121
121
int ret = -1 ;
@@ -140,7 +140,7 @@ static int test0(const void *unused ATTRIBUTE_UNUSED)
140
140
* Only stdin/out/err open
141
141
* Capturing return status must not log error.
142
142
*/
143
- static int test1 (const void * unused ATTRIBUTE_UNUSED )
143
+ static int test1 (const void * unused G_GNUC_UNUSED )
144
144
{
145
145
virCommandPtr cmd ;
146
146
int ret = -1 ;
@@ -168,7 +168,7 @@ static int test1(const void *unused ATTRIBUTE_UNUSED)
168
168
* Run program (twice), no args, inherit all ENV, keep CWD.
169
169
* Only stdin/out/err open
170
170
*/
171
- static int test2 (const void * unused ATTRIBUTE_UNUSED )
171
+ static int test2 (const void * unused G_GNUC_UNUSED )
172
172
{
173
173
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
174
174
int ret ;
@@ -199,7 +199,7 @@ static int test2(const void *unused ATTRIBUTE_UNUSED)
199
199
* Run program, no args, inherit all ENV, keep CWD.
200
200
* stdin/out/err + two extra FD open
201
201
*/
202
- static int test3 (const void * unused ATTRIBUTE_UNUSED )
202
+ static int test3 (const void * unused G_GNUC_UNUSED )
203
203
{
204
204
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
205
205
int newfd1 = dup (STDERR_FILENO );
@@ -239,7 +239,7 @@ static int test3(const void *unused ATTRIBUTE_UNUSED)
239
239
* Only stdin/out/err open.
240
240
* Daemonized
241
241
*/
242
- static int test4 (const void * unused ATTRIBUTE_UNUSED )
242
+ static int test4 (const void * unused G_GNUC_UNUSED )
243
243
{
244
244
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
245
245
char * pidfile = virPidFileBuildPath (abs_builddir , "commandhelper" );
@@ -279,7 +279,7 @@ static int test4(const void *unused ATTRIBUTE_UNUSED)
279
279
* Run program, no args, inherit filtered ENV, keep CWD.
280
280
* Only stdin/out/err open
281
281
*/
282
- static int test5 (const void * unused ATTRIBUTE_UNUSED )
282
+ static int test5 (const void * unused G_GNUC_UNUSED )
283
283
{
284
284
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
285
285
@@ -301,7 +301,7 @@ static int test5(const void *unused ATTRIBUTE_UNUSED)
301
301
* Run program, no args, inherit filtered ENV, keep CWD.
302
302
* Only stdin/out/err open
303
303
*/
304
- static int test6 (const void * unused ATTRIBUTE_UNUSED )
304
+ static int test6 (const void * unused G_GNUC_UNUSED )
305
305
{
306
306
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
307
307
@@ -324,7 +324,7 @@ static int test6(const void *unused ATTRIBUTE_UNUSED)
324
324
* Run program, no args, inherit filtered ENV, keep CWD.
325
325
* Only stdin/out/err open
326
326
*/
327
- static int test7 (const void * unused ATTRIBUTE_UNUSED )
327
+ static int test7 (const void * unused G_GNUC_UNUSED )
328
328
{
329
329
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
330
330
@@ -347,7 +347,7 @@ static int test7(const void *unused ATTRIBUTE_UNUSED)
347
347
* Run program, no args, inherit filtered ENV, keep CWD.
348
348
* Only stdin/out/err open
349
349
*/
350
- static int test8 (const void * unused ATTRIBUTE_UNUSED )
350
+ static int test8 (const void * unused G_GNUC_UNUSED )
351
351
{
352
352
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
353
353
@@ -372,7 +372,7 @@ static int test8(const void *unused ATTRIBUTE_UNUSED)
372
372
* Run program, some args, inherit all ENV, keep CWD.
373
373
* Only stdin/out/err open
374
374
*/
375
- static int test9 (const void * unused ATTRIBUTE_UNUSED )
375
+ static int test9 (const void * unused G_GNUC_UNUSED )
376
376
{
377
377
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
378
378
const char * const args [] = { "arg1" , "arg2" , NULL };
@@ -409,7 +409,7 @@ static int test9(const void *unused ATTRIBUTE_UNUSED)
409
409
* Run program, some args, inherit all ENV, keep CWD.
410
410
* Only stdin/out/err open
411
411
*/
412
- static int test10 (const void * unused ATTRIBUTE_UNUSED )
412
+ static int test10 (const void * unused G_GNUC_UNUSED )
413
413
{
414
414
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
415
415
const char * const args [] = {
@@ -433,7 +433,7 @@ static int test10(const void *unused ATTRIBUTE_UNUSED)
433
433
* Run program, some args, inherit all ENV, keep CWD.
434
434
* Only stdin/out/err open
435
435
*/
436
- static int test11 (const void * unused ATTRIBUTE_UNUSED )
436
+ static int test11 (const void * unused G_GNUC_UNUSED )
437
437
{
438
438
const char * args [] = {
439
439
abs_builddir "/commandhelper" ,
@@ -456,7 +456,7 @@ static int test11(const void *unused ATTRIBUTE_UNUSED)
456
456
* Run program, no args, inherit all ENV, keep CWD.
457
457
* Only stdin/out/err open. Set stdin data
458
458
*/
459
- static int test12 (const void * unused ATTRIBUTE_UNUSED )
459
+ static int test12 (const void * unused G_GNUC_UNUSED )
460
460
{
461
461
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
462
462
@@ -477,7 +477,7 @@ static int test12(const void *unused ATTRIBUTE_UNUSED)
477
477
* Run program, no args, inherit all ENV, keep CWD.
478
478
* Only stdin/out/err open. Set stdin data
479
479
*/
480
- static int test13 (const void * unused ATTRIBUTE_UNUSED )
480
+ static int test13 (const void * unused G_GNUC_UNUSED )
481
481
{
482
482
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
483
483
char * outactual = NULL ;
@@ -516,7 +516,7 @@ static int test13(const void *unused ATTRIBUTE_UNUSED)
516
516
* Run program, no args, inherit all ENV, keep CWD.
517
517
* Only stdin/out/err open. Set stdin data
518
518
*/
519
- static int test14 (const void * unused ATTRIBUTE_UNUSED )
519
+ static int test14 (const void * unused G_GNUC_UNUSED )
520
520
{
521
521
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
522
522
char * outactual = NULL ;
@@ -589,7 +589,7 @@ static int test14(const void *unused ATTRIBUTE_UNUSED)
589
589
* Run program, no args, inherit all ENV, change CWD.
590
590
* Only stdin/out/err open
591
591
*/
592
- static int test15 (const void * unused ATTRIBUTE_UNUSED )
592
+ static int test15 (const void * unused G_GNUC_UNUSED )
593
593
{
594
594
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
595
595
char * cwd = NULL ;
@@ -617,7 +617,7 @@ static int test15(const void *unused ATTRIBUTE_UNUSED)
617
617
/*
618
618
* Don't run program; rather, log what would be run.
619
619
*/
620
- static int test16 (const void * unused ATTRIBUTE_UNUSED )
620
+ static int test16 (const void * unused G_GNUC_UNUSED )
621
621
{
622
622
virCommandPtr cmd = virCommandNew ("true" );
623
623
char * outactual = NULL ;
@@ -662,7 +662,7 @@ static int test16(const void *unused ATTRIBUTE_UNUSED)
662
662
/*
663
663
* Test string handling when no output is present.
664
664
*/
665
- static int test17 (const void * unused ATTRIBUTE_UNUSED )
665
+ static int test17 (const void * unused G_GNUC_UNUSED )
666
666
{
667
667
virCommandPtr cmd = virCommandNew ("true" );
668
668
int ret = -1 ;
@@ -718,7 +718,7 @@ static int test17(const void *unused ATTRIBUTE_UNUSED)
718
718
/*
719
719
* Run long-running daemon, to ensure no hang.
720
720
*/
721
- static int test18 (const void * unused ATTRIBUTE_UNUSED )
721
+ static int test18 (const void * unused G_GNUC_UNUSED )
722
722
{
723
723
virCommandPtr cmd = virCommandNewArgList ("sleep" , "100" , NULL );
724
724
char * pidfile = virPidFileBuildPath (abs_builddir , "commandhelper" );
@@ -766,7 +766,7 @@ static int test18(const void *unused ATTRIBUTE_UNUSED)
766
766
/*
767
767
* Asynchronously run long-running daemon, to ensure no hang.
768
768
*/
769
- static int test19 (const void * unused ATTRIBUTE_UNUSED )
769
+ static int test19 (const void * unused G_GNUC_UNUSED )
770
770
{
771
771
virCommandPtr cmd = virCommandNewArgList ("sleep" , "100" , NULL );
772
772
pid_t pid ;
@@ -803,7 +803,7 @@ static int test19(const void *unused ATTRIBUTE_UNUSED)
803
803
* Run program, no args, inherit all ENV, keep CWD.
804
804
* Ignore huge stdin data, to provoke SIGPIPE or EPIPE in parent.
805
805
*/
806
- static int test20 (const void * unused ATTRIBUTE_UNUSED )
806
+ static int test20 (const void * unused G_GNUC_UNUSED )
807
807
{
808
808
virCommandPtr cmd = virCommandNewArgList (abs_builddir "/commandhelper" ,
809
809
"--close-stdin" , NULL );
@@ -846,7 +846,7 @@ static const char *const newenv[] = {
846
846
NULL
847
847
};
848
848
849
- static int test21 (const void * unused ATTRIBUTE_UNUSED )
849
+ static int test21 (const void * unused G_GNUC_UNUSED )
850
850
{
851
851
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
852
852
int ret = -1 ;
@@ -894,7 +894,7 @@ static int test21(const void *unused ATTRIBUTE_UNUSED)
894
894
}
895
895
896
896
static int
897
- test22 (const void * unused ATTRIBUTE_UNUSED )
897
+ test22 (const void * unused G_GNUC_UNUSED )
898
898
{
899
899
int ret = -1 ;
900
900
virCommandPtr cmd ;
@@ -947,7 +947,7 @@ test22(const void *unused ATTRIBUTE_UNUSED)
947
947
948
948
949
949
static int
950
- test23 (const void * unused ATTRIBUTE_UNUSED )
950
+ test23 (const void * unused G_GNUC_UNUSED )
951
951
{
952
952
/* Not strictly a virCommand test, but this is the easiest place
953
953
* to test this lower-level interface. It takes a double fork to
@@ -1003,7 +1003,7 @@ test23(const void *unused ATTRIBUTE_UNUSED)
1003
1003
return ret ;
1004
1004
}
1005
1005
1006
- static int test25 (const void * unused ATTRIBUTE_UNUSED )
1006
+ static int test25 (const void * unused G_GNUC_UNUSED )
1007
1007
{
1008
1008
int ret = -1 ;
1009
1009
int pipeFD [2 ] = { -1 , -1 };
@@ -1081,7 +1081,7 @@ static int test25(const void *unused ATTRIBUTE_UNUSED)
1081
1081
/*
1082
1082
* Don't run program; rather, log what would be run.
1083
1083
*/
1084
- static int test26 (const void * unused ATTRIBUTE_UNUSED )
1084
+ static int test26 (const void * unused G_GNUC_UNUSED )
1085
1085
{
1086
1086
virCommandPtr cmd = virCommandNew ("true" );
1087
1087
char * outactual = NULL ;
@@ -1139,7 +1139,7 @@ static int test26(const void *unused ATTRIBUTE_UNUSED)
1139
1139
return ret ;
1140
1140
}
1141
1141
1142
- static int test27 (const void * unused ATTRIBUTE_UNUSED )
1142
+ static int test27 (const void * unused G_GNUC_UNUSED )
1143
1143
{
1144
1144
virCommandPtr cmd = virCommandNew (abs_builddir "/commandhelper" );
1145
1145
int pipe1 [2 ];
@@ -1277,8 +1277,8 @@ static void virCommandThreadWorker(void *opaque)
1277
1277
}
1278
1278
1279
1279
static void
1280
- virCommandTestFreeTimer (int timer ATTRIBUTE_UNUSED ,
1281
- void * opaque ATTRIBUTE_UNUSED )
1280
+ virCommandTestFreeTimer (int timer G_GNUC_UNUSED ,
1281
+ void * opaque G_GNUC_UNUSED )
1282
1282
{
1283
1283
/* nothing to be done here */
1284
1284
}
0 commit comments