switch to using boost::filesystem
[mussa.git] / alg / test / test_nway.cpp
index 53508dfe1b121c3ea22d783fdb716d9ed2de0aa6..49be7e5c040a932e5c964932fa20cea66b3f6982 100644 (file)
@@ -1,4 +1,6 @@
 #include <boost/test/auto_unit_test.hpp>
+#include <boost/filesystem/path.hpp>
+namespace fs = boost::filesystem;
 
 #include <string>
 #include <iostream>
@@ -55,11 +57,12 @@ BOOST_AUTO_TEST_CASE( nway_test )
   }
 }
 
-#include <unistd.h>
 BOOST_AUTO_TEST_CASE( nway_refine )
 {
+  fs::path mupa_path( EXAMPLE_DIR );
+  mupa_path /= "mck3test.mupa";
   Mussa m1;
-  m1.load_mupa_file( "examples/mck3test.mupa" );
+  m1.load_mupa_file( mupa_path );
   m1.analyze(0, 0);
   const NwayPaths& npath = m1.paths();
   BOOST_CHECK_EQUAL (npath.path_size(), npath.refined_path_size());