diff options
author | Michael Pratt <mpratt@google.com> | 2019-12-03 12:45:43 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-03 12:47:03 -0800 |
commit | d7cc2480cb6e465ce01eb245e7edbad2c68c44d8 (patch) | |
tree | 584a6bf59ce62e76382010252fea5ba5fb1e143f /test/util/test_util.h | |
parent | 812189664cab0a17ae29095e4029e2f8762a6779 (diff) |
Add RunfilesPath to test_util
A few tests have their own ad-hoc implementations. Add a single common one.
PiperOrigin-RevId: 283601666
Diffstat (limited to 'test/util/test_util.h')
-rw-r--r-- | test/util/test_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/util/test_util.h b/test/util/test_util.h index dc30575b8..ee6c2bf4d 100644 --- a/test/util/test_util.h +++ b/test/util/test_util.h @@ -764,6 +764,12 @@ MATCHER_P2(EquivalentWithin, target, tolerance, return Equivalent(arg, target, tolerance); } +// Returns the absolute path to the a data dependency. 'path' is the runfile +// location relative to workspace root. +#ifdef __linux__ +std::string RunfilePath(std::string path); +#endif + void TestInit(int* argc, char*** argv); } // namespace testing |