Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTMAssertObjectImageEqualToImageNamed fails to write images on iOS device #69

Open
GoogleCodeExporter opened this issue May 12, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Set up test for GTMAssertObjectImageEqualToImageNamed, leave out the 
reference image
2. Run on iOS device
3. Observe failure

What is the expected output? What do you see instead?
Reference image (same for diff, if reference exists) should be saved, but will 
not be on device, because the destination path tried is /Desktop/imagename.png 
- /Desktop is not a valid path on the device.

Instead the image should be stored in the App's home directory so it can be 
grabbed later, e. g. via Xcode/Organizer.


What version of the product are you using? On what operating system?
GTM SVN Rev 426.
iOS 4.2.1 / Xcode 3.2.5


Please provide any additional information below.
Attached find a proposed patch to fix this. It will place the images to the 
App's tmp directory.

Original issue reported on code.google.com by daniel.s...@gmail.com on 20 Jan 2011 at 1:44

Attachments:

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

No branches or pull requests

1 participant