mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-11 22:44:04 +00:00
diag: Add System enumerator to all diagnostics
Describes what Tint system raised the diagnostic. Use this information in the fuzzers to distinguish between expected and unexpected failure cases in the Transform fuzzer tests. Fixed: chromium:1206407 Fixed: chromium:1207154 Change-Id: I3b807acafe384a2fc363d2a4165a29693450b3cf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55254 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
261643bb9f
commit
ffd28e2e1a
@@ -30,8 +30,8 @@ std::string TmpFilePath(std::string ext) {
|
||||
// (when the source value exceeds the representable range) is implementation
|
||||
// defined. While such a large file extension is unlikely in practice, we
|
||||
// enforce this here at runtime.
|
||||
TINT_ASSERT(ext.length() <=
|
||||
static_cast<size_t>(std::numeric_limits<int>::max()));
|
||||
TINT_ASSERT(Utils, ext.length() <=
|
||||
static_cast<size_t>(std::numeric_limits<int>::max()));
|
||||
std::string name = "tint_XXXXXX" + ext;
|
||||
int file = mkstemps(&name[0], static_cast<int>(ext.length()));
|
||||
if (file != -1) {
|
||||
|
||||
Reference in New Issue
Block a user