On command line unit test shows message "ADDRESPONSE - ADDING TO MEMORY ONLY" #108

Closed
pau151 opened this Issue Jan 7, 2013 · 1 comment

Comments

Projects
None yet
1 participant

pau151 commented Jan 7, 2013

Hi,

My unit test downloads an image and checks if it's not nil. I am using Async test for that. This test works perfectly on simulator. But on command line I get this message. Also the image not get downloaded which fails my test.

This issue happens only if I uncomment the following lines in RunTests.sh script

export CFFIXED_USER_HOME="$TEMP_FILES_DIR/iPhone Simulator User Dir" # Be compatible with google-toolbox-for-mac

if [ -d $"CFFIXED_USER_HOME" ]; then
rm -rf "$CFFIXED_USER_HOME"
fi
mkdir -p "$CFFIXED_USER_HOME"

If I keep these lines uncommented, It fails my other tests with ssl request.

Please help me resolving this.

Thanks,

pau151 commented Jan 8, 2013

I resolved this issue by adding following code to RunTests.sh file
export LD_LIBRARY_PATH="$TEMP_FILES_DIR/iPhone Simulator User Dir/Library/Caches"
if [ -d "$LD_LIBRARY_PATH" ]; then
rm -rf "$LD_LIBRARY_PATH"
fi
mkdir -p "$LD_LIBRARY_PATH"

It creates a cache folder in build folder and use it to save downloaded images

@pau151 pau151 closed this Jan 8, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment