From 1728b2396591853345507a063ed6075dfd251706 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 14 May 2014 10:02:03 -0700 Subject: Switch to g_ for globals. That's what the Google style guide recommends, and we're starting to get a mix. Change-Id: Ib0c53a890bb5deed5c679e887541a715faea91fc --- tests/signal_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/signal_test.cpp') diff --git a/tests/signal_test.cpp b/tests/signal_test.cpp index af9896409..89b808838 100644 --- a/tests/signal_test.cpp +++ b/tests/signal_test.cpp @@ -146,10 +146,10 @@ TEST(signal, sigwait) { ASSERT_EQ(SIGALRM, received_signal); } -static int gSigSuspendTestHelperCallCount = 0; +static int g_sigsuspend_test_helper_call_count = 0; static void SigSuspendTestHelper(int) { - ++gSigSuspendTestHelperCallCount; + ++g_sigsuspend_test_helper_call_count; } TEST(signal, sigsuspend_sigpending) { @@ -172,7 +172,7 @@ TEST(signal, sigsuspend_sigpending) { // Raise SIGALRM and check our signal handler wasn't called. raise(SIGALRM); - ASSERT_EQ(0, gSigSuspendTestHelperCallCount); + ASSERT_EQ(0, g_sigsuspend_test_helper_call_count); // We should now have a pending SIGALRM but nothing else. sigemptyset(&pending); @@ -188,7 +188,7 @@ TEST(signal, sigsuspend_sigpending) { ASSERT_EQ(-1, sigsuspend(¬_SIGALRM)); ASSERT_EQ(EINTR, errno); // ...and check that we now receive our pending SIGALRM. - ASSERT_EQ(1, gSigSuspendTestHelperCallCount); + ASSERT_EQ(1, g_sigsuspend_test_helper_call_count); // Restore the original set. ASSERT_EQ(0, sigprocmask(SIG_SETMASK, &original_set, NULL)); -- cgit v1.2.3