Add notes about testing with Address Sanitizer

This commit is contained in:
Kyle Neideck 2016-02-20 19:04:19 +11:00
parent 199f5f6a6b
commit 5336a5a670
3 changed files with 7 additions and 3 deletions

View file

@ -511,7 +511,6 @@
);
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_UNROLL_LOOPS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
@ -671,7 +670,6 @@
);
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_UNROLL_LOOPS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;

View file

@ -145,4 +145,8 @@ xcodebuild -project BGMApp/BGMApp.xcodeproj -configuration Debug
open "BGMApp/build/Debug/Background Music.app"
```
To test with Address Sanitizer, you might have to set the environment var `ASAN_OPTIONS=detect_odr_violation=0` to work
around [Issue #647](https://github.com/google/sanitizers/issues/647). (In Xcode, go `Product` > `Scheme` > `Edit
Scheme...`, select the Background Music scheme, and add the environment var in Run > Arguments.)

View file

@ -95,5 +95,7 @@ There are also lots of other TODOs commented around the code.
- When BGMApp changes the default device to BGMDevice, some apps seem to keep using the previous default device if they
were running IO at the time. Not sure if we can do anything about this.
- Figure out how to test BGMDriver with Address Sanitizer enabled. It isn't working because coreaudio will try to read
files outside of its sandbox.