From a776a9112e4829a997cc29e7fcb8db03e542ba25 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Apr 2020 13:41:21 +0200 Subject: [PATCH] Use /proc/cpuinfo instead of /proc/diskstats in Linux file tests The file /proc/diskstats doesn't seem to contain anything on some Travis builds, so try using /proc/cpuinfo instead. --- tests/file/filetest.cpp | 2 +- tests/textfile/textfiletest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/file/filetest.cpp b/tests/file/filetest.cpp index d418362875..4df22d037a 100644 --- a/tests/file/filetest.cpp +++ b/tests/file/filetest.cpp @@ -149,7 +149,7 @@ TEST_CASE("wxFile::Special", "[file][linux][special-file]") // for reading) and usually we don't have the permissions to do it. // This file is not seekable and has 0 size, but can still be read. - wxFile fileProc("/proc/diskstats"); + wxFile fileProc("/proc/cpuinfo"); CHECK( fileProc.IsOpened() ); wxString s; diff --git a/tests/textfile/textfiletest.cpp b/tests/textfile/textfiletest.cpp index d76cb1b244..57b3b5dc2a 100644 --- a/tests/textfile/textfiletest.cpp +++ b/tests/textfile/textfiletest.cpp @@ -347,7 +347,7 @@ TEST_CASE("wxTextFile::Special", "[textfile][linux][special-file]") SECTION("/proc") { wxTextFile f; - CHECK( f.Open("/proc/diskstats") ); + CHECK( f.Open("/proc/cpuinfo") ); CHECK( f.GetLineCount() > 1 ); }