Changeset 1249


Ignore:
Timestamp:
Mar 20, 2008, 7:12:20 PM (13 years ago)
Author:
Peter
Message:

refs #217. Added function 'filename' that takes relative path and returns absolute path.

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1225 r1249  
    169169     doc/doxygen.config
    170170     test/Makefile
     171     test/environment.h
    171172     test/data/Makefile
    172173     yat/Makefile
  • trunk/test/Suite.cc

    r1247 r1249  
    2323
    2424#include "Suite.h"
     25#include "environment.h"
    2526
    2627#include <algorithm>
     
    6465  {
    6566    ok_ = ok_ && ok;
     67  }
     68
     69
     70  std::string filename(const std::string& path)
     71  {
     72    return abs_srcdir()+"/"+path;
    6673  }
    6774
  • trunk/test/Suite.h

    r1247 r1249  
    9696  };
    9797
     98  /**
     99     \return absolute path to file
     100     \param local_path path relative to srcdir
     101   */
     102  std::string filename(const std::string& local_path);
     103
    98104  template<typename Iterator1, typename Iterator2>
    99105  bool Suite::equal_range(Iterator1 first1, Iterator1 last1, Iterator2 first2,
Note: See TracChangeset for help on using the changeset viewer.