Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LLVM project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Panda
LLVM project
Commits
e2e68994
Commit
e2e68994
authored
2 years ago
by
Bill Wendling
Browse files
Options
Downloads
Patches
Plain Diff
[randstruct] disable test for Windows for now.
parent
7b0dad9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clang/unittests/AST/RandstructTest.cpp
+3
-3
3 additions, 3 deletions
clang/unittests/AST/RandstructTest.cpp
with
3 additions
and
3 deletions
clang/unittests/AST/RandstructTest.cpp
+
3
−
3
View file @
e2e68994
...
...
@@ -145,6 +145,7 @@ TEST(RANDSTRUCT_TEST, MarkedNoRandomize) {
EXPECT_EQ
(
Expected
,
getFieldNamesFromRecord
(
RD
));
}
#ifndef _WIN32
TEST
(
RANDSTRUCT_TEST
,
MarkedRandomize
)
{
const
std
::
unique_ptr
<
ASTUnit
>
AST
=
makeAST
(
R"c(
struct test {
...
...
@@ -158,9 +159,7 @@ TEST(RANDSTRUCT_TEST, MarkedRandomize) {
EXPECT_FALSE
(
AST
->
getDiagnostics
().
hasErrorOccurred
());
const
RecordDecl
*
RD
=
getRecordDeclFromAST
(
AST
->
getASTContext
(),
"test"
);
#ifdef WIN64
const
field_names
Expected
=
{
"lettuce"
,
"mayonnaise"
,
"bacon"
,
"tomato"
};
#elif defined(_WIN32)
#ifdef _WIN32
const
field_names
Expected
=
{
"lettuce"
,
"bacon"
,
"mayonnaise"
,
"tomato"
};
#else
const
field_names
Expected
=
{
"mayonnaise"
,
"bacon"
,
"tomato"
,
"lettuce"
};
...
...
@@ -170,6 +169,7 @@ TEST(RANDSTRUCT_TEST, MarkedRandomize) {
EXPECT_TRUE
(
RD
->
isRandomized
());
EXPECT_EQ
(
Expected
,
getFieldNamesFromRecord
(
RD
));
}
#endif
TEST
(
RANDSTRUCT_TEST
,
MismatchedAttrsDeclVsDef
)
{
const
std
::
unique_ptr
<
ASTUnit
>
AST
=
makeAST
(
R"c(
...
...
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