alexfh updated this revision to Diff 512748. alexfh added a comment. Use full expressions in the CHECK-NOT.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D148099/new/ https://reviews.llvm.org/D148099 Files: lldb/test/Shell/Commands/command-stop-hook-no-target.test 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,5 @@ # RUN: %clang_host -g %S/Inputs/main.c -o %t -# 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 +# 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 # CHECK: Stop hook #1 added -# CHECK-NOT: 473895126 +# CHECK-NOT: (lldb) expression 95000 + 126 +# CHECK-NOT: (int) $0 = 95126
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,5 @@ # RUN: %clang_host -g %S/Inputs/main.c -o %t -# 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 +# 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 # CHECK: Stop hook #1 added -# CHECK-NOT: 473895126 +# CHECK-NOT: (lldb) expression 95000 + 126 +# CHECK-NOT: (int) $0 = 95126
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits