#! /usr/bin/perl
use strict;
-use Fcntl ':flock';
use strict;
use Getopt::Long qw(GetOptions);
-open SELF, "< $0" or die "Cannot open the lock file";
-if (!flock SELF, LOCK_EX | LOCK_NB) {
- print STDERR "sg_unit_extractor already running. Cancelling...\n";
- exit;
-}
-
my $progname="sg_unit_extractor";
# Get the args
strcat(selection, \",\");
strcat(selection, p);
}
- } else if (!strncmp(argv[i],\"--dump-only\",strlen(\"--dump-only\"))||
- !strncmp(argv[i],\"--dump\", strlen(\"--dump\"))) {
+ } else if (!strcmp(argv[i], \"--dump-only\")||
+ !strcmp(argv[i], \"--dump\")) {
xbt_test_dump(selection);
return 0;
- } else if (!strncmp(argv[i],\"--help\",strlen(\"--help\"))) {
+ } else if (!strcmp(argv[i], \"--help\")) {
printf(
"Usage: testall [--help] [--tests=selection] [--dump-only]\\n\\n"
"--help: display this help\\n"
last if /SGU: BEGIN SUITES DECLARATION/;
}
- ### Done with prototypes. And now, the actual code
+ ### Done with prototypes. And now, the actual code
# search my prototype
while (<IN>) {