Changeset 159

Show
Ignore:
Timestamp:
05/09/08 02:26:59 (8 months ago)
Author:
iteman
Message:

- Changed code so as to exit the program when loading a preload file is failed.

Location:
trunk/bin
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/bin/specrunner

    r149 r159  
    7575 
    7676    if (!is_null($file)) { 
    77         $file = realpath($file); 
    78         if ($file !== false) { 
    79             include_once $file; 
     77        $result = include_once $file; 
     78        if (!$result) { 
     79            echo "ERROR: Cannot load '$file'. Make sure the file path and permission are correct.\n"; 
     80            exit(1); 
    8081        } 
    8182    } 
  • trunk/bin/testrunner

    r149 r159  
    7575 
    7676    if (!is_null($file)) { 
    77         $file = realpath($file); 
    78         if ($file !== false) { 
    79             include_once $file; 
     77        $result = include_once $file; 
     78        if (!$result) { 
     79            echo "ERROR: Cannot load '$file'. Make sure the file path and permission are correct.\n"; 
     80            exit(1); 
    8081        } 
    8182    } 
  • trunk/bin/testrunner-st

    r149 r159  
    7575 
    7676    if (!is_null($file)) { 
    77         $file = realpath($file); 
    78         if ($file !== false) { 
    79             include_once $file; 
     77        $result = include_once $file; 
     78        if (!$result) { 
     79            echo "ERROR: Cannot load '$file'. Make sure the file path and permission are correct.\n"; 
     80            exit(1); 
    8081        } 
    8182    }