Skip to content

Commit eff95bd

Browse files
committed
t/10_slaymakefile.init/ - Silence "not imported" warnings by using distinct var names
Using "$FILE" in multiple tests causes the "not imported" warnings. Simply replacing them with distinct names causes the warnings to go away.
1 parent da182b9 commit eff95bd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
include common.smakh
22

33
{
4-
$ENV{FILE} = $FILE = "32_act_array";
4+
$ENV{MYFILE} = $MYFILE = "32_act_array";
55
}
66

77
default: depend1 depend2 depend3
8-
{ @OUTPUT = `cat $FILE.trace`;
8+
{ @OUTPUT = `cat $MYFILE.trace`;
99
trace(@_) }
1010

1111
depend%: my_prereq% your_prereq%
12-
['sh', '-c', 'echo "Building $TARGET with deps ($DEP0, $DEP1) and match ($MATCH0)" >> $FILE.trace']
12+
['sh', '-c', 'echo "Building $TARGET with deps ($DEP0, $DEP1) and match ($MATCH0)" >> $MYFILE.trace']

t/10_slaymakefile.init/34_act_perl.log.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
34_act_perl.smak, 3: Global symbol "$FILE" requires explicit package name at 34_act_perl.smak line 4. at SlayMakefile.main line 26
1+
34_act_perl.smak, 3: Global symbol "$AFILE" requires explicit package name at 34_act_perl.smak line 4. at SlayMakefile.main line 26
22
Building depend1 with matches: depend1
33
Building depend2 with matches: depend2
44
Building depend3 with matches: depend3

t/10_slaymakefile.init/34_act_perl.smak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include common.smakh
22

33
{
4-
$ENV{FILE} = $FILE = "34_act_array";
4+
$ENV{AFILE} = $AFILE = "34_act_array";
55
}
66

77
default: depend1 depend2 depend3

0 commit comments

Comments
 (0)