Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in test program for reachability tests. #3628

Merged
merged 2 commits into from
Oct 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backends/p4tools/testgen/test/small-step/reachability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ReturnedInfo loadExampleForReachability(const char* curFile) {
AutoCompileContext autoP4TestContext(new P4ReachabilityContext());
auto& options = P4ReachabilityContext::get().options();
const char* argv = "./p4testgen";
options.process(1, (char* const*)&argv);
options.process(1, const_cast<char* const*>(&argv));
options.langVersion = CompilerOptions::FrontendVersion::P4_16;
std::string includeDir = std::string(buildPath) + std::string("p4include");
auto* originalEnv = getenv("P4C_16_INCLUDE_PATH");
Expand Down Expand Up @@ -175,7 +175,7 @@ const IR::Node* getFromHash(const P4Tools::ReachabilityHashType& hash, const cha

TEST_F(P4CReachability, testTableAndActions) {
auto result = loadExampleForReachability(
"../../backends/p4tools/testgen/targets/bmv2/test/p4-programs/bmv2_hit.p4)");
"../../backends/p4tools/testgen/targets/bmv2/test/p4-programs/bmv2_hit.p4");
const auto* program = get<0>(result);
ASSERT_TRUE(program);
const auto* dcg = std::get<1>(result);
Expand Down