Switch to g_ for globals.
That's what the Google style guide recommends, and we're starting
to get a mix.
Change-Id: Ib0c53a890bb5deed5c679e887541a715faea91fc
diff --git a/tests/dlfcn_test.cpp b/tests/dlfcn_test.cpp
index b31d7e4..3b3c0f6 100644
--- a/tests/dlfcn_test.cpp
+++ b/tests/dlfcn_test.cpp
@@ -27,9 +27,9 @@
#define ASSERT_SUBSTR(needle, haystack) \
ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
-static bool gCalled = false;
+static bool g_called = false;
extern "C" void DlSymTestFunction() {
- gCalled = true;
+ g_called = true;
}
TEST(dlfcn, dlsym_in_self) {
@@ -43,9 +43,9 @@
void (*function)() = reinterpret_cast<void(*)()>(sym);
- gCalled = false;
+ g_called = false;
function();
- ASSERT_TRUE(gCalled);
+ ASSERT_TRUE(g_called);
ASSERT_EQ(0, dlclose(self));
}