X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ftests_filesystem%2Ftest_directory_tree.cpp;h=7897831bf0b3b916db6188a009368d13826a3ff9;hb=13e6a7529652a303b74b5c5235e8046e029f0576;hp=f9fa5adf8bc3670b45dadb1ec4bf987388a9ca3d;hpb=17a418bc7bf82e5665790799fc93d34e385f4fe2;p=feisty_meow.git diff --git a/nucleus/library/tests_filesystem/test_directory_tree.cpp b/nucleus/library/tests_filesystem/test_directory_tree.cpp index f9fa5adf..7897831b 100644 --- a/nucleus/library/tests_filesystem/test_directory_tree.cpp +++ b/nucleus/library/tests_filesystem/test_directory_tree.cpp @@ -54,7 +54,7 @@ int test_directory_tree::execute() { FUNCDEF("execute"); - astring path = "/usr/include"; + astring path = "/usr/lib"; #ifdef __WIN32__ // default path for windoze uses an area that should always exist. path = environment::get("COMMONPROGRAMFILES"); @@ -197,7 +197,7 @@ LOG(diffs.text_form()); LOG("reading tree to recreate"); directory_tree dir(path, pattern.s()); ASSERT_TRUE(dir.good(), "makedirs test directory reading"); - filename tmpdir(environment::get("GENERATED_DIR") + "/zz_balfazzaral"); + filename tmpdir(environment::get("FEISTY_MEOW_GENERATED_STORE") + "/zz_balfazzaral"); LOG(astring("will write to tmp in ") + tmpdir); basis::outcome result = dir.make_directories(tmpdir.raw()); ASSERT_EQUAL(result.value(), common::OKAY, "makedirs should succeed"); @@ -216,7 +216,7 @@ LOG("what happened with that? did it work?"); //hmmm: plug in real recursive delete here instead. basis::un_int kid; -launch_process::run("rm", astring("-rf ") + tmpdir.raw(), launch_process::AWAIT_APP_EXIT, kid); +launch_process::run("/bin/rm", astring("-rf ") + tmpdir.raw(), launch_process::AWAIT_APP_EXIT, kid); ASSERT_FALSE(kid, "removing temporary files after test"); }