Skip to content

Commit

Permalink
A small workaround for versions of PCP older than 3.6.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed May 13, 2014
1 parent 9844ba2 commit 20422a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/src/test_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

#include "gtest/gtest.h"

// PM_ERR_FAULT ("QA fault injected") was not added until PCP 3.6.0.
#ifndef PM_ERR_FAULT
#define PM_ERR_FAULT PM_ERR_GENERIC
#endif

TEST(cache, lookup_flags_pipe_operator) {
EXPECT_EQ(pcp::cache::require_active, 0|pcp::cache::require_active);
}
Expand Down

0 comments on commit 20422a5

Please sign in to comment.