]> git.lyx.org Git - lyx.git/blob - src/support/tests/check_filetools.cpp
remove unnecessary Carbon include
[lyx.git] / src / support / tests / check_filetools.cpp
1 #include <config.h>
2
3 #include "../filetools.h"
4 #include "../FileName.h"
5
6 #include <iostream>
7
8
9 using namespace lyx::support;
10
11 using namespace std;
12
13 namespace lyx {
14         // Dummy LyXRC support
15         struct LyXRC { string icon_set; } lyxrc;
16
17         // Keep the linker happy on Windows
18         void lyx_exit(int) {}
19
20         docstring const _(string const & s) { return from_ascii(s); }
21 }
22
23 void test_normalizePath()
24 {
25         cout << FileName("/foo/../bar").absFileName() << endl;
26         cout << FileName("/foo/./bar").absFileName() << endl;
27         cout << FileName("/foo//bar").absFileName() << endl;
28 }
29
30 int main()
31 {
32         test_normalizePath();
33 }