Blob Blame History Raw
From 580fcf8fe95c45e337d222a7fd2338fdef2f52c5 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Thu, 24 Mar 2022 16:18:57 +0100
Subject: [PATCH 1/2] Ignore warnings about uring failing during test

---
 tree/ntuple/v7/test/ntuple_extended.cxx | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/tree/ntuple/v7/test/ntuple_extended.cxx b/tree/ntuple/v7/test/ntuple_extended.cxx
index 8e3998996c..98d65ef319 100644
--- a/tree/ntuple/v7/test/ntuple_extended.cxx
+++ b/tree/ntuple/v7/test/ntuple_extended.cxx
@@ -4,6 +4,8 @@
 
 #include "TROOT.h"
 
+#include "ROOTUnitTestSupport.h"
+
 TEST(RNTuple, RealWorld1)
 {
    ROOT::EnableImplicitMT();
@@ -111,6 +113,17 @@ TEST(RNTuple, RandomAccess)
 #if !defined(_MSC_VER) || defined(R__ENABLE_BROKEN_WIN_TESTS)
 TEST(RNTuple, LargeFile)
 {
+   ROOTUnitTestSupport::CheckDiagsRAII raii;
+   raii.optionalDiag(kWarning, "RIoUring",
+                     "io_uring is unexpectedly not available because:", false);
+   raii.optionalDiag(kWarning, "RRawFileUnix",
+                     "io_uring setup failed, falling back to blocking I/O in ReadV", true);
+
+   raii.optionalDiag(kWarning, "ROOT.NTuple",
+                     "The RNTuple file format will change. Do not store real data with this version of RNTuple!", true);
+   raii.optionalDiag(kWarning, "ROOT.NTuple",
+                     "Pre-release format version: ", false);
+
    ROOT::EnableImplicitMT();
    FileRaii fileGuard("test_large_file.root");
 
-- 
2.35.1