Skip to content

"lit not-existing.c" prints "contained no tests" warning #10585

Open
@lattner

Description

@lattner
Bugzilla Link 10213
Version trunk
OS All
CC @modocache

Extended Description

I would expect:

$ rm frotz.c
$ lit frotz.c

to produce an error about the file not existing. Instead it prints a very limp warning:

lit.py: lit.cfg:143: note: using clang: '/Volumes/Data/Users/sabre/cvs/llvm-2/Debug+Asserts/bin/clang'
lit.py: main.py:517: warning: input 'frotz.c' contained no tests
-- Testing: 0 tests, 16 threads --
Testing Time: 0.00s

1 warning(s) in tests.

which is easy to miss, and I commonly get when I forget to include the full path to a testcase I'm working with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions