Skip to content

Commit 9029837

Browse files
make previously broken macro being tested
As suggested by @joker-ehp, this commit undefines `__SHORTFILE__` in `DebugLogTest.cpp` order to make the previously broken variant of `DEBUGLOG_WITH_STREAM_AND_TYPE` being tested at least in this one test, as it is otherwise never used in CI. Signed-off-by: Ingo Müller <[email protected]>
1 parent be227d8 commit 9029837

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/unittests/Support/DebugLogTest.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
// This macro is defined in the LLVM build system, but we undefine it here
10+
// so that we test at least once in-tree the case where __SHORT_FILE__ is not
11+
// defined.
12+
#undef __SHORT_FILE__
13+
914
#include "llvm/Support/DebugLog.h"
1015
#include "llvm/Support/raw_ostream.h"
1116
#include "gmock/gmock.h"

0 commit comments

Comments
 (0)