[Lldb-commits] [PATCH] D148099: [lldb] Reduce chances of spurious failures in some build setups

Alexander Kornienko via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 12 03:00:36 PDT 2023

alexfh created this revision.
alexfh added reviewers: JDevlieghere, rupprecht, brooksmoses.
Herald added a project: All.
alexfh requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

The test may fail when running from a directory that contains the string used in
CHECK-NOT. We observe flakiness rate of around 3/100000. Increasing the length
helps reducing the rate of failures.

  rG LLVM Github Monorepo



Index: lldb/test/Shell/Commands/command-stop-hook-no-target.test
--- lldb/test/Shell/Commands/command-stop-hook-no-target.test
+++ lldb/test/Shell/Commands/command-stop-hook-no-target.test
@@ -1,4 +1,4 @@
 # RUN: %clang_host -g %S/Inputs/main.c -o %t
-# RUN: %lldb -b -o 'target stop-hook add --name test --shlib test -o "expression 95000 + 126"' -o 'file %t' -o 'b main' -o 'r' 2>&1 | FileCheck %s
+# RUN: %lldb -b -o 'target stop-hook add --name test --shlib test -o "expression 473895000 + 126"' -o 'file %t' -o 'b main' -o 'r' 2>&1 | FileCheck %s
 # CHECK: Stop hook #1 added
-# CHECK-NOT: 95126
+# CHECK-NOT: 473895126

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148099.512734.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230412/3ad0bbf0/attachment.bin>

More information about the lldb-commits mailing list