Skip to content

Commit db69310

Browse files
committed
Better document the private hader included in text fixture.
Also, make it explicit starting from project root, otherwise it could be mistaken for the global.h provided in abc. Signed-off-by: Henner Zeller <h.zeller@acm.org>
1 parent 6439817 commit db69310

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/drt/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ if(ENABLE_TESTS)
162162
PRIVATE
163163
${FLEXROUTE_HOME}/src
164164
${OPENROAD_HOME}/include
165+
${OPENROAD_HOME}
165166
)
166167

167168
target_link_libraries(trTest

src/drt/test/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ cc_test(
167167
"../src",
168168
],
169169
deps = [
170-
"//src/drt",
170+
"//src/drt", # build_cleaner: keep for private headers
171171
"//src/drt:base_types",
172172
"//src/drt:db_hdrs",
173173
"//src/odb/src/db",

src/drt/test/fixture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
#include "frBaseTypes.h"
2626
#include "frDesign.h"
2727
#include "frRegionQuery.h"
28-
#include "global.h"
2928
#include "odb/db.h"
3029
#include "odb/dbTypes.h"
30+
#include "src/drt/src/global.h"
3131
#include "utl/Logger.h"
3232

3333
using odb::dbTechLayerDir;

src/drt/test/fixture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#include "db/tech/frViaDef.h"
1515
#include "frBaseTypes.h"
1616
#include "frDesign.h"
17-
#include "global.h"
1817
#include "gtest/gtest.h"
1918
#include "odb/db.h"
2019
#include "odb/dbTypes.h"
20+
#include "src/drt/src/global.h"
2121
#include "utl/Logger.h"
2222

2323
namespace odb {

0 commit comments

Comments
 (0)