Skip to content

Commit da895e4

Browse files
committed
[rfile] remove RNTuple dependency from test
1 parent a97184d commit da895e4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

io/io/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(uring AND NOT DEFINED ENV{ROOTTEST_IGNORE_URING})
1818
ROOT_ADD_GTEST(RIoUring RIoUring.cxx LIBRARIES RIO)
1919
endif()
2020

21-
ROOT_ADD_GTEST(rfile rfile.cxx LIBRARIES RIO Hist ROOTNTuple)
21+
ROOT_ADD_GTEST(rfile rfile.cxx LIBRARIES RIO Hist)
2222

2323
# Temporarily disabled. Test routinely fails on MacOS and some Linuxes.
2424
#if(NOT WIN32 AND (NOT MACOS_VERSION OR NOT MACOSX_VERSION VERSION_LESS 13.00))

io/io/test/rfile.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <TH1D.h>
66
#include <TROOT.h>
77
#include <ROOT/TestSupport.hxx>
8-
#include <ROOT/RNTuple.hxx>
98
#include <ROOT/RError.hxx>
109
#include <ROOT/RFile.hxx>
1110
#include <ROOT/TestSupport.hxx>
@@ -335,11 +334,11 @@ TEST(RFile, RefuseToCreateDirOverLeaf)
335334
#ifdef R__HAS_DAVIX
336335
TEST(RFile, RemoteRead)
337336
{
338-
constexpr const char *kFileName = "http://root.cern/files/RNTuple.root";
339-
337+
constexpr const char *kFileName = "https://root.cern/files/rootcode.root";
338+
340339
auto file = RFile::Open(kFileName);
341-
auto ntuple = file->Get<ROOT::RNTuple>("Contributors");
342-
ASSERT_NE(ntuple, nullptr);
340+
auto content = file->Get<TDirectoryFile>("root");
341+
ASSERT_NE(content, nullptr);
343342
}
344343
#endif
345344

0 commit comments

Comments
 (0)