* <malloc.h> isn't as portable as <stdlib.h> * skip 113_btdll.c on Darwin * replace [...]\+ with [...]\{1,\} in the sed regex (basic REs have no + even some sed(1) accept it as \+, but bounds _are_ part of POSIX BREs)
Unified · Split
| @@ -84,7 +84,7 @@ int main(int argc, char **argv) · 83 unmodified lines | |||
| 84 | 84 | ||
| 85 | /* ------------------------------------------------------- */ | 85 | /* ------------------------------------------------------- */ |
| 86 | #else | 86 | #else |
| 87 | #include <malloc.h> | 87 | #include <stdlib.h> |
| 88 | #include <string.h> | 88 | #include <string.h> |
| 89 | char *strdup(); | 89 | char *strdup(); |
| 90 | int main() | 90 | int main() |
| @@ -14,6 +14,7 @@ ifeq ($(CONFIG_arm_eabi),yes) # not ARM soft-float · 13 unmodified lines | |||
| 14 | endif | 14 | endif |
| 15 | ifdef CONFIG_OSX | 15 | ifdef CONFIG_OSX |
| 16 | SKIP += 40_stdio.test 42_function_pointer.test | 16 | SKIP += 40_stdio.test 42_function_pointer.test |
| 17 | SKIP += 113_btdll.test # no shared lib support yet | ||
| 17 | FLAGS += -w | 18 | FLAGS += -w |
| 18 | SDK := `xcrun --show-sdk-path` | 19 | SDK := `xcrun --show-sdk-path` |
| 19 | TCCFLAGS += -I$(SDK)/usr/include | 20 | TCCFLAGS += -I$(SDK)/usr/include |
| @@ -88,7 +89,7 @@ GEN-ALWAYS = · 68 unmodified lines | |||
| 88 | 112_backtrace.test: FLAGS += -dt -b | 89 | 112_backtrace.test: FLAGS += -dt -b |
| 89 | 112_backtrace.test 113_btdll.test: FILTER += \ | 90 | 112_backtrace.test 113_btdll.test: FILTER += \ |
| 90 | -e 's;[0-9A-Fa-fx]\{5,\};........;g' \ | 91 | -e 's;[0-9A-Fa-fx]\{5,\};........;g' \ |
| 91 | -e 's;0x[0-9A-Fa-f]\+;0x?;g' | 92 | -e 's;0x[0-9A-Fa-f]\{1,\};0x?;g' |
| 92 | 93 | ||
| 93 | # this test creates two DLLs and an EXE | 94 | # this test creates two DLLs and an EXE |
| 94 | 113_btdll.test: NORUN = true | 95 | 113_btdll.test: NORUN = true |