diff options
| author | Elliott Hughes <enh@google.com> | 2014-05-14 17:36:35 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-14 17:36:37 +0000 |
| commit | 15c13bd6cc0ce44d8f083f75d0bfa926a88cc169 (patch) | |
| tree | 7083cd234073afa5179b94b3d978550c890af90c /tests/signal_test.cpp | |
| parent | bac795586bbc5dcbe886d8d781710f60c4c19d9b (diff) | |
| parent | 1728b2396591853345507a063ed6075dfd251706 (diff) | |
| download | bionic-15c13bd6cc0ce44d8f083f75d0bfa926a88cc169.zip bionic-15c13bd6cc0ce44d8f083f75d0bfa926a88cc169.tar.gz bionic-15c13bd6cc0ce44d8f083f75d0bfa926a88cc169.tar.bz2 | |
Merge "Switch to g_ for globals."
Diffstat (limited to 'tests/signal_test.cpp')
| -rw-r--r-- | tests/signal_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/signal_test.cpp b/tests/signal_test.cpp index af98964..89b8088 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)); |
