+#include <config.h>
+
#include "../filetools.h"
#include "../FileName.h"
using namespace std;
namespace lyx {
+ // Dummy LyXRC support
+ struct LyXRC { string icon_set; } lyxrc;
+
+ // Keep the linker happy on Windows
+ void lyx_exit(int) {}
+
docstring const _(string const & s) { return from_ascii(s); }
}
void test_normalizePath()
{
- cout << FileName("/foo/../bar").absFilename() << endl;
- cout << FileName("/foo/./bar").absFilename() << endl;
- cout << FileName("/foo//bar").absFilename() << endl;
+ cout << FileName("/foo/../bar").absFileName() << endl;
+ cout << FileName("/foo/./bar").absFileName() << endl;
+ cout << FileName("/foo//bar").absFileName() << endl;
}
int main()