bool TestExtStream::test_stream_resolve_include_path() { String old_include_path = f_get_include_path(); f_set_include_path(".:test/"); String filename = f_getcwd(); filename += "/test/test_ext_file.txt"; VS(filename, f_stream_resolve_include_path("test_ext_file.txt")); VS(null, f_stream_resolve_include_path("some-nonexistant-file.ext")); f_set_include_path(old_include_path); return Count(true); }
bool TestExtOptions::test_set_include_path() { f_set_include_path(""); return Count(true); }