Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
34ffaf66
Commit
34ffaf66
authored
Apr 11, 2018
by
Jason Merrill
Committed by
Jason Merrill
Apr 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lib/asan-dg.exp: Don't run tests if ulimit -v is set.
From-SVN: r259333
parent
26a998b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/lib/asan-dg.exp
+17
-2
No files found.
gcc/testsuite/ChangeLog
View file @
34ffaf66
2018-04-11 Jason Merrill <jason@redhat.com>
* lib/asan-dg.exp (check_effective_target_fsanitize_address): False
if ulimit -v is set.
2018-04-11 Bin Cheng <bin.cheng@arm.com>
PR testsuite/85190
...
...
gcc/testsuite/lib/asan-dg.exp
View file @
34ffaf66
...
...
@@ -18,9 +18,24 @@
# code, 0 otherwise.
proc check_effective_target_fsanitize_address {} {
return
[check_no_compiler_messages fsanitize_address executable {
if !
[check_no_compiler_messages fsanitize_address executable {
int main (void) { return 0; }
}]
}] {
return 0;
}
# asan doesn't work if there's a ulimit on virtual memory.
if ![is_remote target] {
if [catch {exec sh -c "ulimit -v"} ulimit_v] {
# failed to get ulimit
} elseif [regexp {^[0-9]+$} $ulimit_v] {
# ulimit -v gave a numeric limit
warning "skipping asan tests due to ulimit -v"
return 0;
}
}
return 1;
}
proc asan_include_flags {} {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment