You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/09/20 23:51:22 UTC

[trafficserver] branch master updated: Fixed ts_file test for out of tree builds

This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 70009e3  Fixed ts_file test for out of tree builds
70009e3 is described below

commit 70009e3919141ce3a5af5953dcae745f7d1d7c10
Author: Bryan Call <bc...@apache.org>
AuthorDate: Thu Sep 20 14:21:10 2018 -0700

    Fixed ts_file test for out of tree builds
---
 src/tscore/unit_tests/test_ts_file.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tscore/unit_tests/test_ts_file.cc b/src/tscore/unit_tests/test_ts_file.cc
index e7a49db..58366de 100644
--- a/src/tscore/unit_tests/test_ts_file.cc
+++ b/src/tscore/unit_tests/test_ts_file.cc
@@ -47,12 +47,12 @@ TEST_CASE("ts_file", "[libts][ts_file]")
 
 TEST_CASE("ts_file_io", "[libts][ts_file_io]")
 {
-  path file("unit_tests/test_ts_file.cc");
+  path file("/etc/hosts");
   std::error_code ec;
   std::string content = ts::file::load(file, ec);
   REQUIRE(ec.value() == 0);
   REQUIRE(content.size() > 0);
-  REQUIRE(content.find("ts::file::path") != content.npos);
+  REQUIRE(content.find("localhost") != content.npos);
 
   // Check some file properties.
   REQUIRE(ts::file::is_readable(file) == true);