Skip to content

Commit 5f4d53c

Browse files
author
vladlosev
committed
Fixes test failure on 32-bit Ubuntu.
git-svn-id: http://googletest.googlecode.com/svn/trunk@598 861a406c-534a-0410-8894-cb66d6ee9925
1 parent cdfd81f commit 5f4d53c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/gtest-death-test_test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,9 @@ void SetSigprofActionAndTimer() {
397397
// Disables ITIMER_PROF timer and ignores SIGPROF signal.
398398
void DisableSigprofActionAndTimer(struct sigaction* old_signal_action) {
399399
struct itimerval timer;
400+
timer.it_interval.tv_sec = 0;
400401
timer.it_interval.tv_usec = 0;
401-
timer.it_value.tv_usec = 0;
402+
timer.it_value = timer.it_interval;
402403
ASSERT_EQ(0, setitimer(ITIMER_PROF, &timer, NULL));
403404
struct sigaction signal_action;
404405
memset(&signal_action, 0, sizeof(signal_action));

0 commit comments

Comments
 (0)