dejapatches.exp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright (C) 2008-2015 Free Software Foundation, Inc.
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License as published by
  4. # the Free Software Foundation; either version 3 of the License, or
  5. # (at your option) any later version.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with GCC; see the file COPYING3. If not see
  14. # <http://www.gnu.org/licenses/>.
  15. # Necessary procs and fallbacks for functionality not present in
  16. # pristine dejagnu-1.4.4. Make sure overrides here work with updated
  17. # dejagnu too.
  18. # The absence of sim_download will cause e.g. the libstdc++ testsuite
  19. # to expose about 59 more FAILs on simulator targets supporting
  20. # fileio.
  21. if { [info procs sim_download] == "" } {
  22. proc sim_download { dest file args } {
  23. return [remote_download host $file $args]
  24. }
  25. }
  26. if { [info procs sim_upload] == "" } {
  27. proc sim_upload { dest srcfile args } {
  28. return [remote_upload host $srcfile $args]
  29. }
  30. }