From 288f79270d01ed32d98f67ab4b0abd4af7fb0356 Mon Sep 17 00:00:00 2001 From: Emery Hemingway <ehmry@posteo.net> Date: Mon, 7 Oct 2019 20:26:19 +0200 Subject: [PATCH] test/vfs_stress: annotate switch label fall-throughs This test was written for speed, not correctness. Fixes #3516 --- repos/os/src/test/vfs_stress/main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repos/os/src/test/vfs_stress/main.cc b/repos/os/src/test/vfs_stress/main.cc index 4fffac4476..9fa87b8008 100644 --- a/repos/os/src/test/vfs_stress/main.cc +++ b/repos/os/src/test/vfs_stress/main.cc @@ -239,6 +239,7 @@ struct Populate_test : public Stress_test path.base()[path_len] = '\0'; path.append("a"); populate(depth); + [[fallthrough]]; case 'b': path.base()[path_len] = '\0'; @@ -311,6 +312,7 @@ struct Write_test : public Stress_test path.base()[path_len] = '\0'; path.append("a"); write(depth); + [[fallthrough]]; case 'b': path.base()[path_len] = '\0'; @@ -392,6 +394,7 @@ struct Read_test : public Stress_test path.base()[path_len] = '\0'; path.append("a"); read(depth); + [[fallthrough]]; case 'b': path.base()[path_len] = '\0'; @@ -461,6 +464,7 @@ struct Unlink_test : public Stress_test case Vfs::Directory_service::Dirent_type::DIRECTORY: empty_dir(subpath.base()); + [[fallthrough]]; default: try { @@ -489,6 +493,7 @@ struct Unlink_test : public Stress_test log("recursive unlink not supported"); empty_dir(path.base()); r = vfs.unlink(path.base()); + [[fallthrough]]; case Result::UNLINK_OK: log("recursive unlink supported");