File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
tools/testing/selftests/timers Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -179,18 +179,18 @@ int main(int argc, char **argv)
179
179
struct sigevent se ;
180
180
struct sigaction act ;
181
181
int signum = SIGRTMAX ;
182
- int settime = 0 ;
182
+ int settime = 1 ;
183
183
int tai_time = 0 ;
184
184
int insert = 1 ;
185
- int iterations = -1 ;
185
+ int iterations = 10 ;
186
186
int opt ;
187
187
188
188
/* Process arguments */
189
189
while ((opt = getopt (argc , argv , "sti:" )) != -1 ) {
190
190
switch (opt ) {
191
- case 's ' :
192
- printf ("Setting time to speed up testing \n" );
193
- settime = 1 ;
191
+ case 'w ' :
192
+ printf ("Only setting leap-flag, not changing time. It could take up to a day for leap to trigger. \n" );
193
+ settime = 0 ;
194
194
break ;
195
195
case 'i' :
196
196
iterations = atoi (optarg );
@@ -199,9 +199,10 @@ int main(int argc, char **argv)
199
199
tai_time = 1 ;
200
200
break ;
201
201
default :
202
- printf ("Usage: %s [-s] [-i <iterations>]\n" , argv [0 ]);
203
- printf (" -s: Set time to right before leap second each iteration\n" );
204
- printf (" -i: Number of iterations\n" );
202
+ printf ("Usage: %s [-w] [-i <iterations>]\n" , argv [0 ]);
203
+ printf (" -w: Set flag and wait for leap second each iteration" );
204
+ printf (" (default sets time to right before leapsecond)\n" );
205
+ printf (" -i: Number of iterations (-1 = infinite, default is 10)\n" );
205
206
printf (" -t: Print TAI time\n" );
206
207
exit (-1 );
207
208
}
You can’t perform that action at this time.
0 commit comments