[PDF Ink Signatures] Re-enable PdfInkUndoRedoModelTest.Stress for debug bots
Lower the cycle count for debug bots, so they do not take too long and time out. Bug: 335521182 Change-Id: I7a5afea36ebc09b075e2ed039d9e801c8397b77d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5877687 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Andy Phan <andyphan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1358218}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
b77c73ea78
commit
f79c7c8c02
@@ -329,15 +329,14 @@ TEST(PdfInkUndoRedoModelTest, DrawDrawUndoEraseUndo) {
|
|||||||
ElementsAreArray({5}));
|
ElementsAreArray({5}));
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(crbug.com/335521182): Re-enable the test for debug builds with a smaller
|
TEST(PdfInkUndoRedoModelTest, Stress) {
|
||||||
// `kCycles` count.
|
|
||||||
#if defined(NDEBUG)
|
#if defined(NDEBUG)
|
||||||
#define MAYBE_Stress Stress
|
|
||||||
#else
|
|
||||||
#define MAYBE_Stress DISABLED_Stress
|
|
||||||
#endif
|
|
||||||
TEST(PdfInkUndoRedoModelTest, MAYBE_Stress) {
|
|
||||||
constexpr size_t kCycles = 10000;
|
constexpr size_t kCycles = 10000;
|
||||||
|
#else
|
||||||
|
// The larger non-debug value is too slow for "dbg" bots.
|
||||||
|
constexpr size_t kCycles = 1000;
|
||||||
|
#endif
|
||||||
|
|
||||||
PdfInkUndoRedoModel undo_redo;
|
PdfInkUndoRedoModel undo_redo;
|
||||||
size_t id = 0;
|
size_t id = 0;
|
||||||
for (size_t i = 0; i < kCycles; ++i) {
|
for (size_t i = 0; i < kCycles; ++i) {
|
||||||
|
Reference in New Issue
Block a user