]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
TestRados: Output error for improper usage instead of Floating Point Exception
authorDavid Zafman <david.zafman@inktank.com>
Wed, 3 Jul 2013 22:24:45 +0000 (15:24 -0700)
committerDavid Zafman <david.zafman@inktank.com>
Tue, 9 Jul 2013 07:06:32 +0000 (00:06 -0700)
Signed-off-by: David Zafman <david.zafman@inktank.com>
src/test/osd/TestRados.cc

index 3e44129fa332dbc94156f3051a92af0991699df3..43530f008284c998737f46de83eb3c778b747af7 100644 (file)
@@ -239,6 +239,12 @@ int main(int argc, char **argv)
     }
   }
 
+  if (op_weights.empty()) {
+    cerr << "No operations specified" << std::endl;
+    //usage();
+    exit(1);
+  }
+
   if (min_stride_size < 0)
     min_stride_size = size / 10;
   if (max_stride_size < 0)