summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util_test.cc b/src/util_test.cc
index 5b6b164..f7ccf00 100644
--- a/src/util_test.cc
+++ b/src/util_test.cc
@@ -64,6 +64,9 @@ TEST(CanonicalizePath, EmptyResult) {
string path;
string err;
+ EXPECT_FALSE(CanonicalizePath(&path, &err));
+ EXPECT_EQ("empty path", err);
+
path = ".";
EXPECT_FALSE(CanonicalizePath(&path, &err));
EXPECT_EQ("path canonicalizes to the empty path", err);