Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libredis-perl
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Perl Group
modules
packages
libredis-perl
Commits
f9388f75
Commit
f9388f75
authored
9 years ago
by
Niko Tyni
Browse files
Options
Downloads
Patches
Plain Diff
Add patch from Syohei YOSHIDA fixing locale related build failures.
Closes: #819908
parent
05ba4e53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/fix-locale-ftbfs.patch
+35
-0
35 additions, 0 deletions
debian/patches/fix-locale-ftbfs.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
36 additions
and
0 deletions
debian/patches/fix-locale-ftbfs.patch
0 → 100644
+
35
−
0
View file @
f9388f75
From 155f19bd998cb1350dd067ec7b8c06738f9484e3 Mon Sep 17 00:00:00 2001
From: Syohei YOSHIDA <syohex@gmail.com>
Date: Tue, 9 Jun 2015 12:26:49 +0900
Subject: [PATCH] Compare error number instead of error message for locale
This test may be failed if test platform is not English locale.
So we should compare error number rather than error message.
Origin: https://patch-diff.githubusercontent.com/raw/PerlRedis/perl-redis/pull/112.patch
Bug: https://github.com/PerlRedis/perl-redis/issues/111
Bug-Debian: https://bugs.debian.org/819908
---
t/11-timeout.t | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/t/11-timeout.t b/t/11-timeout.t
index bc0268b..166bbfa 100644
--- a/t/11-timeout.t
+++ b/t/11-timeout.t
@@ -25,13 +25,12 @@
subtest "server doesn't replies quickly enough" => sub {
my $server = Test::SpawnRedisTimeoutServer::create_server_with_timeout(10);
my $redis = Redis->new(server => '127.0.0.1:' . $server->port, read_timeout => 1);
ok($redis);
- my $msg1 = "Error while reading from Redis server: " . strerror(ETIMEDOUT);
- my $msg2 = "Error while reading from Redis server: " . strerror(EWOULDBLOCK);
like(
exception { $redis->get('foo'); },
- qr/$msg1|$msg2/,
+ qr/Error while reading from Redis server: /,
"the code died as expected",
);
+ ok($! == ETIMEDOUT || $! == EWOULDBLOCK);
};
subtest "server doesn't respond at connection (cnx_timeout)" => sub {
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
f9388f75
spelling.patch
fix-locale-ftbfs.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment