1818#include " odb/defin.h"
1919#include " utl/Logger.h"
2020
21+ // TODO: not needed after fully switching to bazel
22+ #ifndef DATA_PREFIX
23+ #define DATA_PREFIX " "
24+ #endif
25+
2126namespace odb {
2227
2328TEST_F (Nangate45TestFixture, PolygonalFloorplanCreatesBlockagesInNegativeSpace)
@@ -27,8 +32,10 @@ TEST_F(Nangate45TestFixture, PolygonalFloorplanCreatesBlockagesInNegativeSpace)
2732 std::vector<dbLib*> libs = {lib_.get ()};
2833
2934 // Act
30- dbChip* chip = def_parser.createChip (
31- libs, " data/nangate45_polygon_floorplan.def" , lib_->getTech ());
35+ dbChip* chip = def_parser.createChip (libs,
36+ DATA_PREFIX
37+ " data/nangate45_polygon_floorplan.def" ,
38+ lib_->getTech ());
3239 EXPECT_NE (chip, nullptr );
3340
3441 // Assert
@@ -70,8 +77,10 @@ TEST_F(Nangate45TestFixture, SettingTheFloorplanTwiceClearsSystemBlockages)
7077 std::vector<dbLib*> libs = {lib_.get ()};
7178
7279 // Act
73- dbChip* chip = def_parser.createChip (
74- libs, " data/nangate45_polygon_floorplan.def" , lib_->getTech ());
80+ dbChip* chip = def_parser.createChip (libs,
81+ DATA_PREFIX
82+ " data/nangate45_polygon_floorplan.def" ,
83+ lib_->getTech ());
7584 EXPECT_NE (chip, nullptr );
7685
7786 odb::Polygon new_die_area ({{0 , 0 },
@@ -120,8 +129,10 @@ TEST_F(Nangate45TestFixture, DeletingSystemBlockagesThrows)
120129 std::vector<dbLib*> libs = {lib_.get ()};
121130
122131 // Act
123- dbChip* chip = def_parser.createChip (
124- libs, " data/nangate45_polygon_floorplan.def" , lib_->getTech ());
132+ dbChip* chip = def_parser.createChip (libs,
133+ DATA_PREFIX
134+ " data/nangate45_polygon_floorplan.def" ,
135+ lib_->getTech ());
125136 EXPECT_NE (chip, nullptr );
126137 dbBlock* block = chip->getBlock ();
127138
@@ -149,8 +160,10 @@ TEST_F(Nangate45TestFixture, DeletingSystemObstructionsThrows)
149160 std::vector<dbLib*> libs = {lib_.get ()};
150161
151162 // Act
152- dbChip* chip = def_parser.createChip (
153- libs, " data/nangate45_polygon_floorplan.def" , lib_->getTech ());
163+ dbChip* chip = def_parser.createChip (libs,
164+ DATA_PREFIX
165+ " data/nangate45_polygon_floorplan.def" ,
166+ lib_->getTech ());
154167 EXPECT_NE (chip, nullptr );
155168 dbBlock* block = chip->getBlock ();
156169 // Assert
0 commit comments