~dobey/unity-api/add-simple-logger

« back to all changes in this revision

Viewing changes to test/gtest/unity/util/SnapPath/SnapPath_test.cpp

  • Committer: Rodney Dawes
  • Date: 2017-03-28 18:46:21 UTC
  • Revision ID: rodney.dawes@canonical.com-20170328184621-18csdpvy33yfkrfu
Fixes per review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
using namespace unity::util;
23
23
 
 
24
namespace {
 
25
 
24
26
TEST(Utilities, testPrependSnapPathSet) {
25
27
    ASSERT_EQ(0, setenv("SNAP", "/snap", 1));
26
28
    EXPECT_EQ("/snap/bar", prepend_snap_path("/bar"));
31
33
    ASSERT_EQ(0, unsetenv("SNAP"));
32
34
    EXPECT_EQ("/bar", prepend_snap_path("/bar"));
33
35
}
 
36
 
 
37
} // namespace