]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
unittest_random: min > max triggers a glibc assert
authorSamuel Just <sjust@redhat.com>
Fri, 20 Dec 2019 21:13:49 +0000 (21:13 +0000)
committerSamuel Just <sjust@redhat.com>
Thu, 23 Jan 2020 00:03:14 +0000 (16:03 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/test/common/test_random.cc

index 85bb732b4752d434094db3bba0844cf89c40294f..5c71d4fb12532e83dbadc3bb889e8c96b6c4aaf3 100644 (file)
@@ -152,12 +152,6 @@ TEST(util, test_random)
     type_check_ok(min, max);
   }
  
-  // min > max should not explode:
-  {
-    float min = 1.0, max = 0.0;
-    type_check_ok(min, max);
-  }
-
   // When combining types, everything should convert to the largest type:
   {
     // Check with integral types: