Skip to content

Conversation

@cbezault
Copy link
Contributor

@cbezault cbezault commented Nov 3, 2020

Merge after #1394

CaseyCarter and others added 30 commits July 25, 2020 20:43
We correctly deprecated `atomic_init` when implementing P0883R2, but missed that the effects changed as well.
@cbezault

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@ben-craig

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@cbezault

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

Base automatically changed from master to main January 28, 2021 00:35
@cbezault cbezault marked this pull request as ready for review February 13, 2021 19:03
@cbezault cbezault requested a review from a team as a code owner February 13, 2021 19:03
Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick partial review.

} \
}

#else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#else
#else // _KERNEL_MODE

abort();
}
}
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#endif
#endif // _KERNEL_MODE

@@ -0,0 +1,26 @@
param([string]$out="MsvcStlTestingCert.pfx",[string]$pass="foo")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New file needs a copyright/license banner.

Where-Object { $_.Subject -eq 'CN=MsvcStlTestingCert' } |
Remove-Item

#Make the new cert
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#Make the new cert
# Make the new cert

@@ -0,0 +1,26 @@
param([string]$out="MsvcStlTestingCert.pfx",[string]$pass="foo")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We conventionally avoid "foo" as a placeholder. Can we use something else here?

typedef struct TestResults {
int main_return;
long tests_failed;
char output[4088];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this number magical or arbitrary?

struct DeviceOpener {
HANDLE h = INVALID_HANDLE_VALUE;
explicit DeviceOpener(const char* driverName) {
std::string dosName = "\\\\.\\";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Raw string literals would make this easier to read.

char InputBuffer[1];
TestResults OutputBuffer;

auto success = DeviceIoControl(dev.h, (DWORD) IOCTL_SIOCTL_METHOD_RUN_TEST, &InputBuffer, sizeof(InputBuffer),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We conventionally avoid C-style casts.

parallelismFlag: '-j$(testParallelism)'
xmlOutputFlag: '--xunit-xml-output=$(${{ parameters.buildOutputLocationVar }})/test-results.xml'
shardFlags: '--num-shards=$(System.TotalJobsInPhase);--run-shard=$(System.JobPositionInPhase)'
shardFlags: '-vv;--num-shards=$(System.TotalJobsInPhase);--run-shard=$(System.JobPositionInPhase)'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is -vv necessary/useful, or is it a relic of development?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one is useful. Without this, CI failures tell you which tests failed, but give very little output from the failing test. But it's hard for me to verify that since this is in the CI machinery.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say this is useful since upstream broke our ability to write nice output to the xml test results.

-DCMAKE_BUILD_TYPE=Release ^
-DLIT_FLAGS=$(litFlags) ^
-DCMAKE_CXX_FLAGS=/analyze:autolog- ^
-DCMAKE_CXX_FLAGS="/showIncludes /analyze:autolog-" ^
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is /showIncludes a relic of development? I am concerned about the amount of log spam it could generate.

Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has a merge conflict with main now - can you resolve it?

@ben-craig
Copy link

I haven't forgotten about this... it's just that the machine that I'd been using to work on this died, and with the chip shortage, I've been having a hard time getting a replacement. I do plan on applying all the changes that have been suggested.

};

inline constexpr _Drop_fn drop;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some ranges changes snuck in by accident?

@ben-craig
Copy link

Superseded by #2040

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Related to test code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants