Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
3052d123
Commit
3052d123
authored
Jan 13, 2017
by
Elliott Hughes
Committed by
Gerrit Code Review
Jan 13, 2017
Browse files
Options
Downloads
Plain Diff
Merge "Fix libbase file.Readlink test on marlin/sailfish."
parents
5d05d0e7
a6c65704
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
base/file_test.cpp
+5
-1
5 additions, 1 deletion
base/file_test.cpp
with
5 additions
and
1 deletion
base/file_test.cpp
+
5
−
1
View file @
3052d123
...
@@ -134,7 +134,11 @@ TEST(file, Readlink) {
...
@@ -134,7 +134,11 @@ TEST(file, Readlink) {
// Linux doesn't allow empty symbolic links.
// Linux doesn't allow empty symbolic links.
std
::
string
min
(
"x"
);
std
::
string
min
(
"x"
);
// ext2 and ext4 both have PAGE_SIZE limits.
// ext2 and ext4 both have PAGE_SIZE limits.
std
::
string
max
(
static_cast
<
size_t
>
(
4096
-
1
),
'x'
);
// If file encryption is enabled, there's extra overhead to store the
// size of the encrypted symlink target. There's also an off-by-one
// in current kernels (and marlin/sailfish where we're seeing this
// failure are still on 3.18, far from current). http://b/33306057.
std
::
string
max
(
static_cast
<
size_t
>
(
4096
-
2
-
1
-
1
),
'x'
);
TemporaryDir
td
;
TemporaryDir
td
;
std
::
string
min_path
{
std
::
string
(
td
.
path
)
+
"/"
+
"min"
};
std
::
string
min_path
{
std
::
string
(
td
.
path
)
+
"/"
+
"min"
};
...
...
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