[PATCH] [Msan] Make the mallinfo.cc test Linux-specific
Viktor Kutuzov
vkutuzov at accesssoftek.com
Wed May 6 03:56:44 PDT 2015
Updated.
http://reviews.llvm.org/D9461
Files:
test/msan/Linux/mallinfo.cc
test/msan/mallinfo.cc
Index: test/msan/mallinfo.cc
===================================================================
--- test/msan/mallinfo.cc
+++ test/msan/mallinfo.cc
@@ -1,12 +0,0 @@
-// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
-
-#include <assert.h>
-#include <malloc.h>
-
-#include <sanitizer/msan_interface.h>
-
-int main(void) {
- struct mallinfo mi = mallinfo();
- assert(__msan_test_shadow(&mi, sizeof(mi)) == -1);
- return 0;
-}
Index: test/msan/Linux/mallinfo.cc
===================================================================
--- test/msan/Linux/mallinfo.cc
+++ test/msan/Linux/mallinfo.cc
@@ -0,0 +1,12 @@
+// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
+
+#include <assert.h>
+#include <malloc.h>
+
+#include <sanitizer/msan_interface.h>
+
+int main(void) {
+ struct mallinfo mi = mallinfo();
+ assert(__msan_test_shadow(&mi, sizeof(mi)) == -1);
+ return 0;
+}
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9461.25032.patch
Type: text/x-patch
Size: 872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150506/87f8acba/attachment.bin>
More information about the llvm-commits
mailing list