summaryrefslogtreecommitdiff
path: root/Tests/Kernel
diff options
context:
space:
mode:
authorCameron Youell <cameronyouell@gmail.com>2023-03-27 00:37:51 +0000
committerAndrew Kaster <andrewdkaster@gmail.com>2023-04-09 20:58:54 -0600
commit03008ec4e0250d7ad8f2ed8db828536347c59738 (patch)
treea81e6d80446b21b58732817b56ecf72fe23bf53f /Tests/Kernel
parent1c54c8a01cc64489faa007c502ab96f11482ee17 (diff)
downloadserenity-03008ec4e0250d7ad8f2ed8db828536347c59738.zip
Tests: Use `FileSystem` instead of `DeprecatedFile`
Diffstat (limited to 'Tests/Kernel')
-rw-r--r--Tests/Kernel/TestKernelFilePermissions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/Kernel/TestKernelFilePermissions.cpp b/Tests/Kernel/TestKernelFilePermissions.cpp
index ec58a1f10a..1dbab644bd 100644
--- a/Tests/Kernel/TestKernelFilePermissions.cpp
+++ b/Tests/Kernel/TestKernelFilePermissions.cpp
@@ -5,7 +5,7 @@
*/
#include <AK/DeprecatedString.h>
-#include <LibCore/DeprecatedFile.h>
+#include <LibFileSystem/FileSystem.h>
#include <LibTest/TestCase.h>
#include <fcntl.h>
#include <stdio.h>
@@ -81,10 +81,10 @@ TEST_CASE(test_change_file_location)
ftruncate(fd, 0);
EXPECT(fchmod(fd, 06755) != -1);
- auto suid_path_or_error = Core::DeprecatedFile::read_link(DeprecatedString::formatted("/proc/{}/fd/{}", getpid(), fd));
+ auto suid_path_or_error = FileSystem::read_link(DeprecatedString::formatted("/proc/{}/fd/{}", getpid(), fd));
EXPECT(!suid_path_or_error.is_error());
- auto suid_path = suid_path_or_error.release_value();
+ auto suid_path = suid_path_or_error.release_value().to_deprecated_string();
EXPECT(suid_path.characters());
auto new_path = DeprecatedString::formatted("{}.renamed", suid_path);