a per-thread on-altstack/not-on-altstack flag, which is set
by this flag. Just ignore it and claim success for the time
being. */
- VG_(debugLog)(0, "syswrap-darwin",
+ VG_(debugLog)(1, "syswrap-darwin",
"WARNING: Ignoring sigreturn( ..., "
"UC_SET_ALT_STACK );\n");
SET_STATUS_Success(0);
}
if (ARG2 == VKI_UC_RESET_ALT_STACK) {
/* Ditto */
- VG_(debugLog)(0, "syswrap-darwin",
+ VG_(debugLog)(1, "syswrap-darwin",
"WARNING: Ignoring sigreturn( ..., "
"UC_RESET_ALT_STACK );\n");
SET_STATUS_Success(0);
* character of the first occurrence of little is returned.
*/
assert (memmem (haystack, 0, needle, 0) == NULL);
+ assert (memmem (haystack, 1, needle, 0) == NULL);
#else
assert (memmem (haystack, 0, needle, 0) == haystack);
-#endif
assert (memmem (haystack, 1, needle, 0) == haystack);
+#endif
assert (memmem (haystack, 0, needle, 1) == NULL);
assert (memmem (haystack, 1, needle, 1) == haystack);
free (haystack);
haystack = create_mem ("abc");
needle = create_mem ("bc");
+#if defined(VGO_darwin)
+ assert (memmem (haystack, 3, needle, 0) == NULL);
+#else
assert (memmem (haystack, 3, needle, 0) == haystack);
+#endif
assert (memmem (haystack, 3, needle, 2) == haystack + 1);
assert (memmem (haystack + 1, 2, needle, 2) == haystack + 1);
assert (memmem (haystack + 2, 1, needle, 2) == NULL);