[Lldb-commits] [lldb] r354425 - [TestModuleCXX] Use UNSUPPORTED instead of REQUIRES

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 20 09:43:08 PST 2019


Done in r354487. Thanks for the heads up!

On Wed, Feb 20, 2019 at 9:41 AM Jonas Devlieghere <jonas at devlieghere.com>
wrote:

> Based on the decorators of the other modules test it looks like this
> should be Darwin only. I'll update the test.
>
> On Wed, Feb 20, 2019 at 9:31 AM Jan Kratochvil <jan.kratochvil at redhat.com>
> wrote:
>
>> On Wed, 20 Feb 2019 02:49:16 +0100, Jonas Devlieghere via lldb-commits
>> wrote:
>> > Author: jdevlieghere
>> > Date: Tue Feb 19 17:49:16 2019
>> > New Revision: 354425
>> ...
>> > --- lldb/trunk/lit/Reproducer/Modules/TestModuleCXX.test (original)
>> > +++ lldb/trunk/lit/Reproducer/Modules/TestModuleCXX.test Tue Feb 19
>> 17:49:16 2019
>> > @@ -1,4 +1,4 @@
>> > -# REQUIRES: nowindows
>> > +# UNSUPPORTED: system-windows
>>
>> It has started failing on Linux (Fedora 29 x86_64).  Is it expected?
>> I haven't tried to debug it yet.
>>
>>
>> Jan
>>
>>
>>
>> ------------------------------------------------------------------------------
>> [bash]jkratoch at host1.jankratochvil.net:/home/jkratoch/redhat/llvm-monorepo-clang#
>> ./bin/llvm-lit -sv tools/lldb/lit --filter TestModuleCXX;echo $?
>> llvm-lit:
>> /home/jkratoch/redhat/llvm-monorepo/llvm/utils/lit/lit/llvm/config.py:337:
>> note: using clang: /home/jkratoch/redhat/llvm-monorepo-clang/bin/clang
>> llvm-lit:
>> /home/jkratoch/redhat/llvm-monorepo/llvm/utils/lit/lit/llvm/config.py:337:
>> note: using ld.lld: /home/jkratoch/redhat/llvm-monorepo-clang/bin/ld.lld
>> llvm-lit:
>> /home/jkratoch/redhat/llvm-monorepo/llvm/utils/lit/lit/llvm/config.py:337:
>> note: using lld-link: /home/jkratoch/redhat/llvm-monorepo-clang/bin/lld-link
>> llvm-lit:
>> /home/jkratoch/redhat/llvm-monorepo/llvm/utils/lit/lit/llvm/config.py:337:
>> note: using ld64.lld: /home/jkratoch/redhat/llvm-monorepo-clang/bin/ld64.lld
>> llvm-lit:
>> /home/jkratoch/redhat/llvm-monorepo/llvm/utils/lit/lit/llvm/config.py:337:
>> note: using wasm-ld: /home/jkratoch/redhat/llvm-monorepo-clang/bin/wasm-ld
>> FAIL: LLDB :: Reproducer/Modules/TestModuleCXX.test (1 of 1)
>> ******************** TEST 'LLDB :: Reproducer/Modules/TestModuleCXX.test'
>> FAILED ********************
>> Script:
>> --
>> : 'RUN: at line 4';   rm -rf
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root
>> : 'RUN: at line 5';   rm -rf
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.clang-cache
>> : 'RUN: at line 6';   rm -rf
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.lldb-cache
>> : 'RUN: at line 9';   mkdir -p
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root
>> : 'RUN: at line 10';   mkdir -p
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.clang-cache
>> : 'RUN: at line 11';   mkdir -p
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.lldb-cache
>> : 'RUN: at line 12';   cp
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/main.cpp
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root
>> : 'RUN: at line 13';   cp
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/Foo.h
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root
>> : 'RUN: at line 14';   cp
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/Bar.h
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root
>> : 'RUN: at line 15';   cp
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/module.modulemap
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root
>> : 'RUN: at line 18';
>>  /home/jkratoch/redhat/llvm-monorepo-clang/bin/clang -pthread
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root/main.cpp
>> -g -fmodules -fcxx-modules
>> -fmodules-cache-path=/home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.clang-cache
>> -o
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root/a.out
>> : 'RUN: at line 21';   /home/jkratoch/redhat/llvm-monorepo-clang/bin/lldb
>> --no-lldbinit -S /home/jkratoch/redhat/llvm-monorepo/lldb/lit/lit-lldb-init
>> -x -b -o 'settings set symbols.clang-modules-cache-path
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.lldb-cache'
>> -s
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in
>> --capture
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.repro
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root/a.out
>> | /home/jkratoch/redhat/llvm-monorepo-clang/bin/FileCheck
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/TestModuleCXX.test
>> --check-prefix CAPTURE
>> : 'RUN: at line 24';   cat
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.repro/files.yaml
>> | /home/jkratoch/redhat/llvm-monorepo-clang/bin/FileCheck
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/TestModuleCXX.test
>> --check-prefix YAML
>> : 'RUN: at line 30';   rm -rf
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root
>> : 'RUN: at line 31';   rm -rf
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.clang-cache
>> : 'RUN: at line 32';   rm -rf
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.lldb-cache
>> : 'RUN: at line 35';   /home/jkratoch/redhat/llvm-monorepo-clang/bin/lldb
>> --no-lldbinit -S /home/jkratoch/redhat/llvm-monorepo/lldb/lit/lit-lldb-init
>> -x -b -o 'settings set symbols.clang-modules-cache-path
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.lldb-cache'
>> -s
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in
>> --replay
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.repro
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root/a.out
>> | /home/jkratoch/redhat/llvm-monorepo-clang/bin/FileCheck
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/TestModuleCXX.test
>> --check-prefix REPLAY
>> --
>> Exit Code: 1
>>
>> Command Output (stderr):
>> --
>> error: use of undeclared identifier 'Bar'
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/TestModuleCXX.test:22:12:
>> error: CAPTURE: expected string not found in input
>> # CAPTURE: (success = 0)
>>            ^
>> <stdin>:1:1: note: scanning from here
>> (lldb) command source -s 0
>> '/home/jkratoch/redhat/llvm-monorepo/lldb/lit/lit-lldb-init'
>> ^
>> <stdin>:12:54: note: possible intended match here
>> Breakpoint 1: where = a.out`main + 22 at main.cpp:7:3, address =
>> 0x0000000000401136
>>
>> ------------------------------------------------------------------------------
>> /home/jkratoch/redhat/llvm-monorepo-clang/bin/lldb --no-lldbinit -S
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/lit-lldb-init -x -b -o
>> 'settings set symbols.clang-modules-cache-path
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.lldb-cache'
>> -s
>> /home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in
>> --capture
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.repro
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root/a.out
>> (lldb) command source -s 0
>> '/home/jkratoch/redhat/llvm-monorepo/lldb/lit/lit-lldb-init'
>> Executing commands in
>> '/home/jkratoch/redhat/llvm-monorepo/lldb/lit/lit-lldb-init'.
>> (lldb) # LLDB init file for the LIT tests.
>> (lldb) settings set symbols.enable-external-lookup false
>> (lldb) settings set interpreter.echo-comment-commands false
>> (lldb) target create
>> "/home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root/a.out"
>> Current executable set to
>> '/home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root/a.out'
>> (x86_64).
>> (lldb) settings set symbols.clang-modules-cache-path
>> /home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.lldb-cache
>> (lldb) command source -s 0
>> '/home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in'
>> Executing commands in
>> '/home/jkratoch/redhat/llvm-monorepo/lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in'.
>> (lldb) breakpoint set -f main.cpp -l 5
>> Breakpoint 1: where = a.out`main + 22 at main.cpp:7:3, address =
>> 0x0000000000401136
>> (lldb) run
>> Process 3900743 stopped
>> * thread #1, name = 'a.out', stop reason = breakpoint 1.1
>>     frame #0: 0x0000000000401136 a.out`main(argc=1,
>> argv=0x00007fffffffcc78) at main.cpp:7:3
>>    4
>>    5    int main(int argc, char **argv) {
>>    6      Foo foo;
>> -> 7      stop(); // break here.
>>    8      return 0;
>>    9    }
>>
>> Process 3900743 launched:
>> '/home/jkratoch/redhat/llvm-monorepo-clang/tools/lldb/lit/Reproducer/Modules/Output/TestModuleCXX.test.tmp.root/a.out'
>> (x86_64)
>> (lldb) expr -l Objective-C++ -- @import Foo
>> (lldb) expr -l Objective-C++ -- @import Bar
>> (lldb) expr -- Bar()
>> error: use of undeclared identifier 'Bar'
>>
>> ------------------------------------------------------------------------------
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190220/6bb80912/attachment.html>


More information about the lldb-commits mailing list