diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-01-04 15:46:55 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-01-05 14:33:50 +0000 |
commit | 35cde5ddaea96d0da3986d39c5c34d28235c27b0 (patch) | |
tree | 91c9b0a3555eab1de9c604bec2d18aaf4d811935 /src/plugins/remotelinux/filesystemaccess_test.cpp | |
parent | 3c7d0c5c988b2228d3c2547787b4a5bd3e3b3668 (diff) | |
download | qt-creator-35cde5ddaea96d0da3986d39c5c34d28235c27b0.tar.gz |
Introduce IDevice::bytesAvailable()
It's going to replace RemoteLinuxCheckForFreeDiskSpaceService.
Change-Id: If8c30a57b9013387c69412f12102bcd4d41a88b5
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/remotelinux/filesystemaccess_test.cpp')
-rw-r--r-- | src/plugins/remotelinux/filesystemaccess_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/remotelinux/filesystemaccess_test.cpp b/src/plugins/remotelinux/filesystemaccess_test.cpp index cf1c060c1d..5d45484a7d 100644 --- a/src/plugins/remotelinux/filesystemaccess_test.cpp +++ b/src/plugins/remotelinux/filesystemaccess_test.cpp @@ -122,6 +122,13 @@ void FileSystemAccessTest::testDirStatuses() QVERIFY(!testFilePath.exists()); } +void FileSystemAccessTest::testBytesAvailable() +{ + FilePath testFilePath = FilePath::fromString("ssh://" + QString(TEST_IP) + "/tmp"); + QVERIFY(testFilePath.exists()); + QVERIFY(testFilePath.bytesAvailable() > 0); +} + void FileSystemAccessTest::testFileActions() { FilePath testFilePath = createFile("test"); |