Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: sandbox/linux/services/syscall_wrappers_unittest.cc

Issue 1093843002: Revert of Introduce sys_sigprocmask and sys_sigaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/linux/services/syscall_wrappers.cc ('k') | sandbox/linux/system_headers/android_arm64_ucontext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/services/syscall_wrappers_unittest.cc
diff --git a/sandbox/linux/services/syscall_wrappers_unittest.cc b/sandbox/linux/services/syscall_wrappers_unittest.cc
index 1878ff3fe792afb9d5a83b0d7a9558c2ae56080a..6a70beb673bcefe62b0bdd2bb98d741b5b7e4c54 100644
--- a/sandbox/linux/services/syscall_wrappers_unittest.cc
+++ b/sandbox/linux/services/syscall_wrappers_unittest.cc
@@ -8,13 +8,11 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
-#include <cstring>
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "base/third_party/valgrind/valgrind.h"
#include "build/build_config.h"
-#include "sandbox/linux/system_headers/linux_signal.h"
#include "sandbox/linux/tests/test_utils.h"
#include "sandbox/linux/tests/unit_tests.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -82,18 +80,6 @@
EXPECT_EQ(sgid, sys_sgid);
}
-TEST(SyscallWrappers, LinuxSigSet) {
- sigset_t sigset;
- ASSERT_EQ(0, sigemptyset(&sigset));
- ASSERT_EQ(0, sigaddset(&sigset, LINUX_SIGSEGV));
- ASSERT_EQ(0, sigaddset(&sigset, LINUX_SIGBUS));
- uint64_t linux_sigset = 0;
- std::memcpy(&linux_sigset, &sigset,
- std::min(sizeof(sigset), sizeof(linux_sigset)));
- EXPECT_EQ((1ULL << (LINUX_SIGSEGV - 1)) | (1ULL << (LINUX_SIGBUS - 1)),
- linux_sigset);
-}
-
} // namespace
} // namespace sandbox
« no previous file with comments | « sandbox/linux/services/syscall_wrappers.cc ('k') | sandbox/linux/system_headers/android_arm64_ucontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698