Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(ERT_HAVE_GETUID AND ERT_HAVE_OPENDIR)
list(APPEND opt_srcs util/test_work_area.cpp util/util_getuid.cpp)
list(APPEND opt_srcs util/test_work_area.cpp)
endif()

if(ERT_HAVE_OPENDIR)
Expand Down
1 change: 0 additions & 1 deletion lib/include/ert/util/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ void util_make_path(const char *);
double util_file_difftime(const char *, const char *);
size_t util_file_size(const char *);
size_t util_fd_size(int fd);
void util_clear_directory(const char *path, bool strict_uid, bool unlink_root);
void util_strupr(char *);
bool util_string_equal(const char *s1, const char *s2);
char *util_alloc_strupr_copy(const char *);
Expand Down
6 changes: 3 additions & 3 deletions lib/util/test_work_area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#include <paths.h>
#endif

#include <ert/util/ert_api_config.hpp>

#include <cstdlib>
#include <cstdio>
#include <cstring>

#include <filesystem>

#include <ert/util/util.hpp>
#include <ert/util/test_work_area.hpp>

Expand Down Expand Up @@ -188,7 +188,7 @@ TestArea::TestArea(const std::string &test_name, bool store_area)

TestArea::~TestArea() {
if (!this->store)
util_clear_directory(this->cwd.c_str(), true, true);
std::filesystem::remove_all(this->cwd);

util_chdir(this->org_cwd.c_str());
}
Expand Down
92 changes: 0 additions & 92 deletions lib/util/util_getuid.cpp

This file was deleted.

Loading