diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2019-05-28 12:58:03 (GMT) |
---|---|---|
committer | Jan Niklas Hasse <jhasse@bixense.com> | 2020-11-18 13:13:50 (GMT) |
commit | 836abffe5eb34485e755a6976815656d28984e92 (patch) | |
tree | e9d450bd1abe73340d25ee4dfd459b100e0c8347 /src/includes_normalize_test.cc | |
parent | a30ccaef7314f5aa858ba3167af08be4b518d960 (diff) | |
download | Ninja-836abffe5eb34485e755a6976815656d28984e92.zip Ninja-836abffe5eb34485e755a6976815656d28984e92.tar.gz Ninja-836abffe5eb34485e755a6976815656d28984e92.tar.bz2 |
Use GoogleTest instead of our own framework
Fixes #1248.
Diffstat (limited to 'src/includes_normalize_test.cc')
-rw-r--r-- | src/includes_normalize_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/includes_normalize_test.cc b/src/includes_normalize_test.cc index 9214f53..12965f9 100644 --- a/src/includes_normalize_test.cc +++ b/src/includes_normalize_test.cc @@ -117,10 +117,10 @@ TEST(IncludesNormalize, LongInvalidPath) { // Construct max size path having cwd prefix. // kExactlyMaxPath = "$cwd\\a\\aaaa...aaaa\0"; char kExactlyMaxPath[_MAX_PATH + 1]; - ASSERT_NE(_getcwd(kExactlyMaxPath, sizeof kExactlyMaxPath), NULL); + ASSERT_STRNE(_getcwd(kExactlyMaxPath, sizeof kExactlyMaxPath), NULL); int cwd_len = strlen(kExactlyMaxPath); - ASSERT_LE(cwd_len + 3 + 1, _MAX_PATH) + ASSERT_LE(cwd_len + 3 + 1, _MAX_PATH); kExactlyMaxPath[cwd_len] = '\\'; kExactlyMaxPath[cwd_len + 1] = 'a'; kExactlyMaxPath[cwd_len + 2] = '\\'; |