Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addressed 'Use of uninitialized value $class::' warning #101

Merged
merged 2 commits into from
Jul 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion framework/util/fix_test_suite.pl
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ =head2 Logging
while ($counter > 0) {
# Compile generated tests
my $comp_log = "$TMP_DIR/comp_tests.log";
system(">$comp_log");
if (! $project->compile_ext_tests("$TMP_DIR/$src", $comp_log)) {
$LOG->log_file(" - Tests do not compile: $name", $comp_log);
my ($n_uncompilable_tests, $n_uncompilable_test_classes) = _rm_classes($comp_log, $src, $name);
Expand Down Expand Up @@ -423,7 +424,7 @@ sub _rm_classes {

# get rid of all test cases of this class that have been
# selected to be removed
@uncompilable_tests = grep ! /^--- $class::/, @uncompilable_tests;
@uncompilable_tests = grep ! /^--- ${class}::/, @uncompilable_tests;
# Update counter
++$num_uncompilable_test_classes;
} else {
Expand Down