Skip to content

Commit

Permalink
Actually check that transition applies in cc_define_test (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored Dec 20, 2024
1 parent 6deee74 commit 0b7184f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/cc_define_test/hello_world_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ using bazel::tools::cpp::runfiles::Runfiles;
#endif

int main(int argc, char** argv) {
if (std::string(NAME) != "with_cfg") {
std::cerr << "NAME is not set to 'with_cfg'" << std::endl;
return 1;
}
if (std::string(std::getenv("MY_VAR")) != "my_value") {
std::cerr << "MY_VAR is not set to 'my_value'" << std::endl;
return 1;
Expand Down

0 comments on commit 0b7184f

Please sign in to comment.