Making the /Error/ regex match on word boundries so it won't match i2c_error for example.

This commit is contained in:
Bernard Davison
2012-03-20 14:48:53 +11:00
parent cc050c4781
commit 9bfb5ef9a2
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ my $compile_output = run_program(
"make $make_compile_options",
0,1);
unlike($compile_output, '/Aircraft \'LisaLv11_Booz2v12_RC\' not found in/', "The compile output does not contain the message \"Aircraft \'LisaLv11_Booz2v12_RC\' not found in\"");
unlike($compile_output, '/Error/i', "The compile output does not contain the word \"Error\"");
unlike($compile_output, '/\bError\b/i', "The compile output does not contain the word \"Error\"");
####################
# Upload the airframe
@@ -27,7 +27,7 @@ my $upload_output = run_program(
$ENV{'PAPARAZZI_SRC'},
"make $make_upload_options",
0,1);
unlike($upload_output, '/Error/i', "The upload output does not contain the word \"Error\"");
unlike($upload_output, '/\bError\b/i', "The upload output does not contain the word \"Error\"");
# Start the server process
my $server_command = "$ENV{'PAPARAZZI_HOME'}/sw/ground_segment/tmtc/server";
@@ -37,7 +37,7 @@ foreach my $example (sort keys%{$examples->{'aircraft'}})
$ENV{'PAPARAZZI_SRC'},
"make $make_upload_options",
$ENV->{'TEST_VERBOSE'},1);
unlike($upload_output, '/Error/i', "The upload output does not contain the word \"Error\"");
unlike($upload_output, '/\bError\b/i', "The upload output does not contain the word \"Error\"");
}
}
elsif ($process =~ m#target#)
@@ -57,7 +57,7 @@ foreach my $example (sort keys%{$examples->{'aircraft'}})
$ENV{'PAPARAZZI_SRC'},
"make $make_upload_options",
$ENV->{'TEST_VERBOSE'},1);
unlike($upload_output, '/Error/i', "The upload output does not contain the word \"Error\"");
unlike($upload_output, '/\bError\b/i', "The upload output does not contain the word \"Error\"");
}
}
}