summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Berg2013-07-02 13:27:58 +0000
committerChristoph Berg2013-07-02 13:27:58 +0000
commitf985221e57db04366b025be3c3d8dc4ac3854721 (patch)
tree0c4cb60ecf9eb8ecdd75843345b490c57448b511
parente987361551c3e643fc34b983dcdf260bafb8da05 (diff)
t/02_settings_checksum.t: Accept hex digits
Previously, this check only worked by chance if the returned checksum started with a plain digit.
-rw-r--r--t/02_settings_checksum.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/02_settings_checksum.t b/t/02_settings_checksum.t
index a4df6b305..21c835e43 100644
--- a/t/02_settings_checksum.t
+++ b/t/02_settings_checksum.t
@@ -54,10 +54,10 @@ like ($cp->run("-w $true_checksum"), qr/OK.*\Qchecksum: $true_checksum\E/, $t);
$t=qq{$S returns the expected output for MRTG(failure)};
like ($cp->run(q{--mrtg 123 --output=MRTG}),
- qr{^0\n0\n\n\d+}, $t);
+ qr{^0\n0\n\n[[:xdigit:]]+$}, $t);
$t=qq{$S returns the expected output for MRTG(success)};
like ($cp->run(qq{--mrtg $true_checksum --output=MRTG}),
- qr{^1\n0\n\n\d+}, $t);
+ qr{^1\n0\n\n[[:xdigit:]]+$}, $t);
exit;