Skip to content

Commit

Permalink
Make FindLibraryTest platform-dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
soonho-tri committed Dec 16, 2017
1 parent 11ea190 commit 96d1681
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/test/find_loaded_library_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ GTEST_TEST(FindLibraryTest, Library) {
// Test wether or not `LoadedLibraryPath()` can find the path to a library
// loaded by the process.
optional<string> library_path =
// TODO(fbudin69500): Remove this platform-dependency.
#ifdef __APPLE__
LoadedLibraryPath("libgflags.so");
#else
LoadedLibraryPath("libexternal_Scom_Ugithub_Ugflags_Ugflags_Slibgflags.so");
#endif
EXPECT_TRUE(library_path);
library_path = LoadedLibraryPath("lib_not_real.so");
EXPECT_FALSE(library_path);
Expand Down

0 comments on commit 96d1681

Please sign in to comment.