diff test/automated/rwops/Test_rwopsbundlesupport.m @ 4449:8f73f4a3c972

Exempted writable modes from bundle check on OS X since bundle areas are typically read-only.
author Eric Wing <ewing . public |-at-| gmail . com>
date Sat, 08 May 2010 04:52:17 -0700
parents 947201caa46e
children
line wrap: on
line diff
--- a/test/automated/rwops/Test_rwopsbundlesupport.m	Sat May 08 01:12:55 2010 -0700
+++ b/test/automated/rwops/Test_rwopsbundlesupport.m	Sat May 08 04:52:17 2010 -0700
@@ -12,6 +12,12 @@
 {
     FILE* fp = NULL;
 
+	// If the file mode is writable, skip all the bundle stuff because generally the bundle is read-only.
+	if(strcmp("r", mode) && strcmp("rb", mode))
+	{
+		return fopen(file, mode);
+	}
+	
 	NSAutoreleasePool* autorelease_pool = [[NSAutoreleasePool alloc] init];