? .DS_Store ? .cache ? .git ? .project ? .settings ? 283246-cleanup-user-3.patch ? empty ? hook_file_c206.patch ? logs ? simpletest_real_files_0.patch ? includes/tests/file.test ? sites/all/modules ? sites/default/files ? sites/default/settings.php ? sites/default/test Index: modules/simpletest/drupal_web_test_case.php =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v retrieving revision 1.37 diff -u -p -r1.37 drupal_web_test_case.php --- modules/simpletest/drupal_web_test_case.php 6 Sep 2008 08:36:20 -0000 1.37 +++ modules/simpletest/drupal_web_test_case.php 9 Sep 2008 18:02:39 -0000 @@ -898,7 +898,10 @@ class DrupalWebTestCase { // is broken. This is a less than elegant workaround. Alternatives // are being explored at #253506. foreach ($upload as $key => $file) { - $post[$key] = '@' . realpath($file); + $file = realpath($file); + if ($file && is_file($file)) { + $post[$key] = '@' . $file; + } } } else {