message: Fix remaining broken tests from rc changes.
diff: @@ -44,7 +44,14 @@ TEST(hipfftTest, CheckBufferSizeR2C)
  size_t workSize = 0;
  EXPECT_TRUE(hipfftMakePlan1d(plan, n, HIPFFT_R2C, 1, &workSize) == HIPFFT_SUCCESS);
  + if(n % 2 == 0)
  + {
  + EXPECT_TRUE(workSize == 0);
  + }
  + else
  + {
  EXPECT_TRUE(workSize == 2 * n * sizeof(float));
  + }
  EXPECT_TRUE(hipfftDestroy(plan) == HIPFFT_SUCCESS);
  }
  @@ -57,7 +64,14 @@ TEST(hipfftTest, CheckBufferSizeC2R)
  size_t workSize = 0;
  EXPECT_TRUE(hipfftMakePlan1d(plan, n, HIPFFT_C2R, 1, &workSize) == HIPFFT_SUCCESS);
  + if(n % 2 == 0)
  + {
  + EXPECT_TRUE(workSize == 0);
  + }
  + else
  + {
  EXPECT_TRUE(workSize == 2 * n * sizeof(float));
  + }
  EXPECT_TRUE(hipfftDestroy(plan) == HIPFFT_SUCCESS);
  }
  @@ -71,7 +85,14 @@ TEST(hipfftTest, CheckBufferSizeD2Z)
  size_t workSize = 0;
  EXPECT_TRUE(hipfftMakePlan1d(plan, n, HIPFFT_D2Z, batch, &workSize) == HIPFFT_SUCCESS);
  - EXPECT_TRUE(workSize == 2 * n * batch * sizeof(double));
  + if(n % 2 == 0)
  + {
  + EXPECT_TRUE(workSize == 0);
  + }
  + else
  + {
  + EXPECT_TRUE(workSize == 2 * n * sizeof(float));
  + }
  EXPECT_TRUE(hipfftDestroy(plan) == HIPFFT_SUCCESS);
  }
  @@ -85,7 +106,14 @@ TEST(hipfftTest, CheckBufferSizeZ2D)
  size_t workSize = 0;
  EXPECT_TRUE(hipfftMakePlan1d(plan, n, HIPFFT_Z2D, batch, &workSize) == HIPFFT_SUCCESS);
  - EXPECT_TRUE(workSize == 2 * n * batch * sizeof(double));
  + if(n % 2 == 0)
  + {
  + EXPECT_TRUE(workSize == 0);
  + }
  + else
  + {
  + EXPECT_TRUE(workSize == 2 * n * sizeof(float));
  + }
  EXPECT_TRUE(hipfftDestroy(plan) == HIPFFT_SUCCESS);
  }
  @@ -117,7 +145,10 @@ TEST(hipfftTest, RunR2C)
  hipfftDestroy(plan);
  hipFree(d_in);
  hipFree(d_out);
  + if(N % 2 != 0)
  + {
  EXPECT_TRUE(workSize != 0);
  + }
  double ref_in[N];
  for(size_t i = 0; i < N; i++)
  